Conditional scheduling rule description

更新时间: 2026-06-23 11:21:26

Dataphin conditional scheduling uses AND/OR logic to evaluate conditions based on data timestamps or cross-edge zone parameters, determining whether a scheduled task runs.

Conditional scheduling rule description

Conditional scheduling supports AND and OR logical operations:

  • AND: Evaluates to true only if all conditions are met.

  • OR: Evaluates to true if at least one condition is met.

Conditional judgment types

Conditions can be based on data timestamp or cross-edge zone parameters.

Data timestamp judgment types

Data timestamps can be evaluated against a regular calendar or a public calendar.

  • Regular calendar: Corresponds to the Gregorian calendar and supports parameters such as date, month, and week. Conditions for these parameters include belongs to and does not belong to.

  • Public calendar: A custom calendar in Dataphin that supports parameters such as date type (working day, holiday), tag, and financial periods. Conditions for tags are as follows:

    Important

    Financial periods are supported only when the public calendar is based on a financial calendar template.

    • Date type: Includes working days and holidays.

    • Tag: Criteria include all, contains any, and does not contain.

    • Financial periods: Judged by whether they belong to or do not belong to a given period.

Cross-edge zone parameter judgment types

Cross-edge zone parameters are evaluated based on value type: text or numeric.

  • Text Type: Allows for conditions Is or Is Not.

  • Numeric Type: Supports numeric comparisons using operators such as =, !=, >, <, >=, <=.

Example description

image

The following example uses December 6, 2022, with conditions configured using an OR operation:

  • First condition: December 6, 2022 is not a weekend day in the regular calendar, so the first condition evaluates to false.

  • Second condition: December 6, 2022 is marked as a holiday in the public calendar text01, so the second condition evaluates to true.

Because an or operation is used, the overall result is true when any single condition is satisfied. The system then skips execution based on the specified execution schedule type. The following graph shows a preview of the scheduled run plan:

image

上一篇: Scheduling dependency rules and examples 下一篇: Computation template
阿里云首页 智能数据建设与治理 Dataphin 相关技术圈