Offline task property configuration
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
-
On the Dataphin homepage, choose Development > Data Development from the top menu bar.
-
On the Development page, choose Project from the top menu bar.
-
In the left-side navigation pane, choose Data Processing > Compute Task. In the Compute Task list, click the name of your target task.
-
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 |
|
Includes the task name, node ID, node type, developer, O&M engineer, and description.
|
|
|
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
|
|
Resource reference |
Select the resources to reference. You can select any resource within the current project. Note
|
|
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 Note
Databricks Connect can be enabled only when the project's compute source engine is Databricks and the Python version is 3.11. |
|
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. |
|
|
Defines how the task is periodically scheduled in the production environment.
|
|
|
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. |
|
|
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. |
|
|
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.