Configure scheduling dependencies

Updated at:

Dataphin runs nodes in a specific order based on the scheduling dependencies you configure. This ensures your data is generated accurately and on time. This topic describes how to configure scheduling dependencies for a periodic offline pipeline.

Procedure

  1. In the top menu bar of the Dataphin homepage, choose Develop > Data Integration.

  2. In the top menu bar of the data integration page, select a Project. If you use the Dev-Prod mode, you must also select an environment.

  3. In the left-side navigation pane, click Offline Integration, then find and click the desired offline pipeline.

  4. In the right-side navigation pane, click Properties to open the Properties panel.

  5. In the Scheduling dependency section, configure the Scheduling dependency parameters for the integration task.

    1. Upstream Dependencies

      • Auto Parse

        To configure upstream dependencies for the integration task, click Auto Parse. Dataphin automatically identifies the upstream tasks and their output tables based on the integration task's configuration. After parsing, Dataphin adds all discovered dependency tables to the upstream dependency list. You can view the details of the parsed tables, or edit or delete them. For more information, see auto-parse process.

        Note
        • If multiple tasks generate an auto-parsed input table, Dataphin adds all of them as upstream dependencies by default.

        • For all parsed dependency tables, the dependency period defaults to Current Period.

      • Add Root Node

        If a task has no upstream dependencies, click Add Root Node to add the root node as its upstream dependency.

        Note

        During initialization, Dataphin assigns a virtual root node whose name starts with virtual_root_node to each tenant or enterprise.

      • Add Previous Period of This Node

        This option creates a self-dependency, meaning the task's execution depends on the successful completion of its instance from the previous period (for example, the previous day or the previous n hours).

      • Add Dependency

        If Auto-parse fails to resolve scheduling dependencies or the upstream dependency configuration generated by Auto-parse does not match the actual application, you can manually click +Add Dependency to add the node's upstream dependency.

        • Add Dependency - Physical Node

          In the Add Dependency - Physical Node dialog box, you can filter by Project or Node Type, use the shortcut to filter for This Project, or search by Node Name or Output Table Name.

        • Add Dependency - Logical Table Node

          In the Add Dependency - Logical Table Node dialog box, you can filter by Logical Table Type or Business Category, or search by Node Name or Output Table Name.

          If you need to depend on specific fields instead of the entire logical table, click image..png in the Dependent Fields column for the node to view and select the required table fields.

        When you add a dependency, the system automatically applies the recommended settings for Dependency Period and Dependency Policy. To change these settings, click image.png next to a dependency in the list to edit its Dependency Period and Dependency Policy.

        • Dependency Period: The scheduled execution time range for the upstream task instance. Typically, this is the current day, which corresponds to the interval [00:00–24:00).

        • Dependency Policy: If multiple instances can run within a dependency period, you must specify a dependency policy. You can choose the upstream task status that satisfies the dependency: Run Successfully, Run Failed, or Run Completed (Success or Failure). The default is Run Successfully. For information about the default policies for cross-period dependencies, see Appendix: Default policies for cross-period dependencies.

          Important

          If only one instance exists, you can select any option for the dependency policy. To accommodate potential changes in upstream task scheduling, only relative path policies are supported.

          • Run Successfully: The downstream task runs only after the upstream task succeeds. If the upstream task fails, the downstream task does not run.

          • Run Failed: The downstream task runs only after the upstream task fails after all automatic retries. If the upstream task succeeds, the downstream task does not run.

          • Run Completed (Success or Failure): The downstream task runs after the upstream task finishes, regardless of whether it succeeded or failed after all automatic retries.

    2. Output of This Node

      The system automatically generates an output name for the node you create. To add more output names, click Auto-generate Output Name.

      Important

      The system uses output names to build the scheduling dependency graph. The system automatically generates output names. Do not change them manually.

  6. Click OK to save the scheduling dependency configuration.

Appendix: Default policies for cross-period dependencies

Scheduling period

Upstream node

Upstream period

Upstream self-dependency

Default dependency period

Month

This Node (Self-dependent)

-

Previous Period (1 day ago)

Week

This Node (Self-dependent)

-

Previous Period (1 day ago)

Day

This Node (Self-dependent)

-

Previous Period (1 day ago)

Hour

This Node (Self-dependent)

-

Last 24 Hours

Minute

This Node (Self-dependent)

-

Last 24 Hours

Day/Week/Month

Not This Node

Day

Current Period (Current Day)

Day/Week/Month

Not This Node

Hour/Minute

No

Current Period (Current Day)

Day/Week/Month

Not This Node

Hour/Minute

Yes

Current Period (Current Day)

Month/Week/Day/Hour/Minute

Not This Node

Month/Week

Yes

Current Period (Current Day)

Month/Week/Day/Hour/Minute

Not This Node

Month

No

Current Period (Current Day)

Month/Week/Day/Hour/Minute

Not This Node

Week

No

Current Period (Current Day)

Hour/Minute

Not This Node

Day

Current Period (Current Day)

Hour/Minute

Not This Node

Hour/Minute

Current Period (Current Day)