Offline task property configuration

Updated at:

To run an offline task periodically, you must configure its scheduling properties, such as the scheduling cycle, dependencies, and runtime parameters. This topic provides an overview of these properties and configurations.

Notes

  • You can configure scheduling properties only for offline compute tasks whose scheduling type is Periodic Task.

  • A dependency defines the execution order between two nodes. The status of an upstream node affects the execution status of its downstream nodes.

  • For nodes with dependencies, a downstream node runs only after its upstream nodes complete. Then, the system checks the node's scheduled time to determine whether to start the execution.

  • Scheduling configurations submitted before the scheduled time take effect at that time. If a dependency is configured after the scheduled time, a new instance is generated on the next day.

  • A task's scheduling configuration defines only the properties for a scheduled run. This configuration takes effect only after the task is published to the production environment.

  • The scheduled time defines only the expected execution time. The actual execution time also depends on the status of upstream nodes. For more information about task execution conditions, see Instance Diagnostics.

Access offline task properties

  1. On the Dataphin homepage, choose Development > Data Development from the top menu bar.

  2. On the Development page, choose Project from the top menu bar.

  3. In the left-side navigation pane, choose Data Processing > Compute Task. In the Compute Task list, click the name of your target task.

  4. In the task tab, click Properties on the right to open the Properties panel.

Configure offline task properties

On the offline task properties page, configure the basic information and scheduling properties for the task.

Parameter

Description

Basic information

Includes the task name, node ID, node type, developer, O&M engineer, and description.

  • Task Name: The name of the task specified during creation.

  • Node ID: A unique identifier for the node, generated after the node is submitted.

  • Developer: Defaults to the current user. You can select any member of the current project.

    Note

    You cannot configure the developer in the production environment. This setting is inherited from the development environment.

  • O&M Engineer: Defaults to the node creator. You can also select another member of the current project as the O&M engineer.

Execution resources

The CPU and memory resources allocated to the task.

Note

This configuration is supported only for compute tasks of the following types: Python, Shell, Spark on MaxCompute, Spark on Yarn, MapReduce on MaxCompute, and MapReduce on Yarn.

Third-party Python packages

Select the third-party Python packages to import.

Note
  • This configuration is supported only for Python and Shell compute tasks.

  • After you add a third-party module, you must add a reference to it in the task before you can import the module in your code. You can configure referenced modules in Compute Task Properties > Third-party Python Packages.

Resource reference

Select the resources to reference. You can select any resource within the current project.

Note
  • This configuration is supported only for Shell and Python compute tasks.

  • The system downloads referenced resources to the task's current working directory, preserving their original filenames. You can then use the original filenames to directly read or import the resources in your code.

Databricks Connect

If you enable this option, you must also select a Development httpPath(Cluster) and a Production httpPath(Cluster). For Basic projects, you only need to configure the production httpPath(Cluster).

You can select from all general-purpose compute clusters configured in the Databricks cluster associated with the current project's development or production compute source. These are HTTP paths that start with sql/protocolv1/o.

Note

Databricks Connect can be enabled only when the project's compute source engine is Databricks and the Python version is 3.11.

Runtime parameters (Optional)

Defines parameters for the node's scheduled execution. Dataphin provides built-in parameters and supports custom parameters, allowing for dynamic parameter assignment at runtime.

Note

If you have defined variables in your node's code, you must assign values to them here. If no variables are defined, this step is not required.

Scheduling properties

Defines how the task is periodically scheduled in the production environment.

  • Scheduling Type: Defines the runtime status of instances generated by the task in the production environment.

  • Priority: The priority of the task. When you create a task, its default priority is retrieved from Management Center > Development Platform > Node Task Settings > Default Priority.

    Note

    After the task is published to the production environment or submitted in a Basic environment, you cannot modify the priority when editing the task. You must change it in O&M Center for the production environment. The priority displayed is the latest value from the production environment.

  • Effective Date: Defines the time range during which the task is scheduled. The task no longer generates instances after the effective date.

  • Scheduling Cycle: Defines how often the task is scheduled to run.

  • Conditional Scheduling: Defines the conditions for scheduling the task. You can set multiple condition groups. The system evaluates them in order from top to bottom. When a condition is met, the corresponding schedule is executed, and the evaluation of subsequent conditions stops. If no conditions are met, the default scheduling configuration is used.

Scheduling dependencies

Defines the upstream and downstream dependencies for the task. Dependencies ensure that nodes run in the correct order. A downstream node starts only after its upstream nodes complete successfully. This ensures timely and valid data output. You can use auto-parsing to quickly set node dependencies or add them manually.

Execution settings

Defines the task timeout period and the retry policy for task failures. This prevents resource waste caused by long-running tasks and improves task reliability.

Resource configuration

Select the resource group for the compute task. The scheduler uses the resources in this resource group to run the task.

Next steps

After you configure the task properties, you can submit and publish the task to the production environment. You can then perform O&M operations on the task in the production environment. For more information, see O&M Center.