Help Center> DataArts Studio> User Guide> DataArts Factory> Usage Guidance> Configuring a Yearly Scheduled Job
Updated on 2023-12-22 GMT+08:00

Configuring a Yearly Scheduled Job

Scenario

This section describes how to configure a job that is scheduled at a specified time of a year.

Procedure

In DataArts Studio, create a job that is scheduled every month and add an empty Dummy node (which does not process data) to the job. You can set a condition expression on the connection line between the Dummy node and its subsequent node to check whether the current time falls in the specified day (for example, June 29, 2023) for scheduling the job. If yes, the subsequent node is executed. Otherwise, the subsequent node is skipped.

  1. In the left navigation pane of the DataArts Factory console, choose Data Development > Develop Job.
  2. Set Scheduling Frequency to Every month.
    Figure 1 Setting Scheduling Frequency to Every month

  3. Right-click the connection line between the Dummy node and its subsequent node and select Set Condition to configure a condition expression that is used to determine whether to execute the subsequent node.
    Figure 2 Configuring a condition expression

  4. Configure the expression as follows:
    #{DateUtil.getMonth(Job.planTime) == 6 ? "true" : "false"}

    The expression is used to obtain the current time and check whether it falls in June. If yes, the subsequent node will be executed; if no, the subsequent node will be skipped.

    Figure 3 Condition expression