conductor concept

Definitions

conductor definition is similar to a class definition OOP paradigm or template. You defined only once, and for each workflow execution. Definition and execution of a 1: N relationship.

Tasks

task is to build a block of workflow, workflow least one task. about the task can be divided into two types:

Systems tasks  执行by Conductor server.

Worker tasks    执行by your own workers.

Workflow:

Workflow is a process flow of the container. It may include several different types of task, sub_workflow, interconnecting the input and output, to effectively achieve desirable results

Workflow Definition

Workflow is defined using a DSL JSON-based and contains a set of tasks as part of a workflow execution. These tasks are either control tasks (the fork, conditions, etc.) executing on the remote machine, either application tasks (e.g., to encode a file).

Task Definition

Help define the task level task definition parameters, such as input and output, timeout, retry the like.

     All tasks prior to the use of active workflows need to be registered.

     Tasks can be reused in multiple workflows.

System Tasks

Perform system tasks in the server's JVM Conductor by Conductor manage its implementation and for scalability.

Conductor provides an API to create user defined tasks that are executed in the same JVM as the engine. See WorkflowSystemTask interface for details.

Worker Tasks

Tasks realized by the application and run it independently of the Conductor environment. worker tasks can be implemented in any language. These tasks REST / gRPC communicate with the server through the command, to polling after performing the task and updates its state.

In the blueprint, the tasks identified by a simple task type.

Published 184 original articles · won praise 32 · views 110 000 +

Guess you like

Origin blog.csdn.net/wjandy0211/article/details/103287954