SchedulerX supports task orchestration across applications. You can arrange tasks from the same application or different applications into a single workflow based on their execution logic.
Create a workflow
-
Log in to the MSE SchedulerX console.
-
Log in to the EDAS console.
-
In the left-side navigation pane, click Task Scheduling.
-
In the top menu bar, select a region.
-
In the left-side navigation pane, click Workflow Management.
-
On the Workflow Management page, select the target namespace, and then click Create Workflow.
-
In the Create Workflow panel, configure parameters for the workflow, such as Name, Description, Application ID, and Time Type, and then click OK.
NoteCurrently, a cron expression is the only supported time type for workflow scheduling.
In the Advanced Configuration section, you can also set Time Zone, Calendar, and Task Concurrency.
Create a task
-
On the Workflow Management page, select an existing workflow and click Edit to open the Workflow Details page.
-
Click Add Task and configure the parameters in the Add Task panel. After the task is created, it is added to the workflow and appears on the Task Management page.
Import tasks
-
On the Workflow Management page, select an existing workflow and click Edit to open the Workflow Details page.
-
On the Workflow Details page, click Import Tasks. In the Select Application drop-down list, select an application, then click Import in the Actions column for the desired task. By default, the current workflow's application is selected.
Task orchestration
Add a dependency
You can add a dependency by dragging a line from one node to another.
Example 1: Node 619 is the upstream node for node 620. After node 619 finishes executing, node 620 starts.
Example 2: After node 101 finishes executing, nodes 102 and 103 start at the same time. Node 107 starts only after nodes 104, 105, and 106 all execute successfully.
Delete a dependency
Use one of the following methods:
-
Select a line that represents a dependency in the workflow and press the Delete key.
-
Right-click a line that represents a dependency in the workflow and click Remove.
Edit or delete a job
Right-click a workflow node and select Edit or Remove.
Publish a workflow
After you create or edit tasks on the Workflow Details page, click Publish. The workflow is enabled and scheduling begins. If you do not want to enable the workflow immediately, you can go to the Workflow Management page, click Run Once to test it, and then enable it manually after the test is successful.
Manage workflows
View the workflow instance graph
-
On the Workflow Management page, in the Actions column, click More > History to view the execution history of the workflow.
-
In the Workflow Instance Record panel, click an ID in the Instance ID/Workflow Instance Graph column to view the execution status of all nodes in the workflow.
Stop
-
On the Workflow Management page, in the Actions column, click More > History.
-
In the Workflow Instance Record panel, click Stop. All running nodes in the workflow are forcibly stopped, and the workflow status changes to Failed.
Rerun
Rerun a workflow
You can rerun a failed workflow.
-
On the Workflow Management page, in the Actions column, click More > History.
-
In the Workflow Instance Record panel, click More > Rerun. All failed nodes in the workflow are rerun, and the workflow status changes to Running.
Rerun a node
-
On the Workflow Management page, in the Actions column, click More > History.
-
In the Workflow Instance Record panel, click Details to open the workflow instance graph.
-
Right-click the target node and select one of the following options based on your requirements:
-
Rerun Current Node and Downstream Nodes: Reruns the current node and all its downstream nodes.
-
Rerun Current Node: Reruns only the current node. Downstream nodes are not rerun.
-
-
Click OK in the confirmation dialog box to rerun the specified nodes.
Pause
You can pause a running workflow.
-
On the Workflow Management page, in the Actions column, click More > History.
-
In the Workflow Instance Record panel, click Pause. The system allows running nodes to complete but does not start subsequent nodes. The workflow status changes to Paused.
Resume
You can resume a paused workflow.
-
On the Workflow Management page, in the Actions column, click More > History.
-
In the Workflow Instance Record panel, click Resume to resume executing the downstream nodes.
Skip
In a workflow, if a node has not yet started but you decide not to run it, you can skip the node. The workflow automatically proceeds to the next node.
-
On the Workflow Management page, in the Actions column, click More > History to view the execution history of the workflow.
-
In the Workflow Instance Record panel, click an ID in the Instance ID/Workflow Instance Graph column to open the workflow instance graph. On the workflow instance graph, select a node and click Skip.
Cancel skip
You can cancel the skip action for a node to allow it to run, provided its downstream nodes have not yet started.
-
On the Workflow Management page, in the Actions column, click More > History to view the execution history of the workflow.
-
In the Workflow Instance Record panel, click an ID in the Instance ID/Workflow Instance Graph column to open the workflow instance graph. On the workflow instance graph, select the skipped node and click Cancel Skip.
Import and export workflows
Synchronizing workflows between different regions or namespaces must be done manually.
Export a workflow
-
On the Workflow Management page, select an application from the All Applications drop-down list. Select the checkboxes for the workflows you want to export, and then click Export Workflow. If you do not select any workflows, all workflows for the selected application are exported.
-
In the dialog box, select an application ID, confirm the workflow information, and click OK.
Import a workflow
On the Workflow Management page, click Import Workflow. Upload the workflow file and click OK. In the dialog box, you can select an Application ID and specify how to handle Existing Tasks by selecting Overwrite or Skip.
Before you import a workflow, you must first import its associated tasks. The application ID of the workflow to be imported must be the same as the application ID of the exported workflow. To import tasks, see Import or Export Tasks.