This article takes the "write_result" created in creating synchronization tasks as an example, configure its scheduling cycle as weekly scheduling, introduces the scheduling configuration and task operations features of DataWorks.
DataWorks provides powerful scheduling capabilities including time-based or dependency-based task trigger functions to perform tens of millions of tasks accurately and timely each day, based on DAG relationships. It supports scheduling by minutes, hours, days, weeks, and months. For more information, see Create a synchronization task.
- Select page.
- Double-click the synchronization task (write_result) that you want to configure).
- Click schedule configuration on the right to configure scheduling properties for the task.
- Scheduling status: The task is paused when this parameter is selected.
- Error retry: Error retry is enabled when this parameter is selected.
- Start date: The date that the task takes effect can be set based on requirements.
- Scheduling period: The operating cycle of the task can be set by month, week, day, hour, and minute. For example, a task can be scheduled weekly.
- Specific time: The specific task operating time. For example, you can set up the task to run at 02:00 every Tuesday.
Configure dependency properties for a synchronization task
You can configure an upstream dependency for a task. In this way, even if the current task instance reaches the scheduled time, the task only run after the instance upstream task is completed.
The configuration in the preceding figure indicates the instances of the current task are triggered only after the upstream task write_result is finished. You can enter work in the upstream task to configure an upstream task for write_result.
If no upstream tasks is configured then, by default the current task is triggered by the project. As a result, the default upstream task of the current task is project_start in the scheduling system. By default, a project_start task is created as a root task for each project.
Submit a data synchronization task
Now you know how to set a synchronization task scheduling attribute and dependency, now you can continue to the next topic to learn how to perform periodic O&M for submitted tasks and view the log troubleshooting results. For more information, see cycle care operations and check for log ranking errors.