摘要 |
A method includes determining if a workflow step has an unsatisfied dependency; setting a state of the workflow step to a blocked state if the workflow step has an unsatisfied dependency; executing the workflow step if the workflow step does not have an unsatisfied dependency; setting the state of the workflow step to a cancelled state if, after executing the workflow step; the workflow step is cancelled; setting the state of the workflow step to a success state if, after executing the workflow step, the workflow step is executed successfully; setting the state of the workflow step to an error state if, after executing the workflow step, the workflow step is executed unsuccessfully; setting a state of a workflow to a success state if the workflow is executed successfully; and notifying other nodes of the state of the workflow step and the state of the workflow using a database replication. |
主权项 |
1. A method comprising:
determining, at a node, if a workflow step has an unsatisfied dependency; setting, at the node, a state of the workflow step to a blocked state if the workflow step has an unsatisfied dependency; executing the workflow step if the workflow step does not have an unsatisfied dependency; setting, at the node, the state of the workflow step to a cancelled state if, after executing the workflow step, the workflow step is cancelled; setting, at the node, the state of the workflow step to a success state if, after executing the workflow step, the workflow step is executed successfully; setting, at the node, the state of the workflow step to an error state if, after executing the workflow step, the workflow step is executed unsuccessfully; setting, at the node, a state of a workflow to a success state if the workflow is executed successfully; and notifying other nodes of the state of the workflow step and the state of the workflow using a database replication. |