To run a task periodically, you must define its scheduling configuration, including the scheduling cycle, dependencies, and parameters.
Prerequisites
-
A node has been created. Select a node type based on your business requirements. Data development process.
-
Periodic scheduling is enabled for the workspace. A node can be scheduled automatically only after this is enabled. Enable it on the Scheduling Settings page. Configure scheduling settings.
Important
-
Scheduling configuration takes effect only after the node is deployed to the production environment.
-
The scheduled time is the expected run time. Actual run time depends on upstream node completion. Run diagnostics.
-
For complex dependency scenarios, read Must read: Principles and examples for scheduling configurations in complex dependency scenarios to understand preset dependency behavior.
-
A scheduled task generates instances based on its scheduling type and cycle count. For example, an hourly task generates one instance per hour each day, and these instances run automatically.
-
If you use scheduling parameters, runtime values for each cycle are determined by the scheduled time and your parameter expressions. Supported formats for scheduling parameters.
Access the scheduling configuration
Log on to the DataWorks console. In the target region, click in the left-side navigation pane. Select a workspace from the drop-down list and click Go to Data Development.
-
Go to the scheduling configuration page.
-
In DataStudio, find the target node and go to the node editing page.
-
In the right-side navigation pane of the node editing page, click Properties to open the node scheduling configuration page.
-
Node scheduling properties
Configure the following scheduling properties for the node.
|
Parameter |
Description |
|
Basic node information: name, ID, type, and owner.
|
|
|
Define parameters for scheduled runs. DataWorks supports built-in and custom parameters for dynamic value assignment. Note
If you define a variable in the node code, you must assign its value here. |
|
|
Configure the periodic scheduling behavior in the production environment.
|
|
|
Specify the scheduling resource group for the task in the production environment. |
|
|
Define upstream and downstream dependencies. A downstream node runs only after its upstream nodes succeed, ensuring valid business data. Use automatic parsing for quick setup or configure dependencies manually.
Note
|
|
|
Define how parameters pass between upstream and downstream nodes. A downstream node can reference an output parameter defined in an upstream node. |
Next steps
After configuring scheduling, commit the node and Debug a node to verify the configuration. Then deploy the node to the production environment for periodic scheduling. Perform basic O&M operations on scheduled tasks.