Manage offline computing tasks
The offline computing task list in Dataphin lists all your offline computing tasks, providing basic information and management options for each one. This topic describes the features available for managing these tasks.
Procedure
On the Dataphin homepage, choose R&D > Data Development from the top menu bar.
On the Develop page, select a project from the top menu bar. If you are in Dev-Prod mode, you must also select an environment.
In the left-side navigation pane, choose Data Processing > Computing Task.
At the bottom of the computing task list, click Computing Task List to open the Offline Computing Tasks tab.
The offline computing task list displays the following information for each task: Name/ID, Task Type, Task Status, Last Commit Status, Current Locker, Developer, Scheduling Type, Scheduling Cycle, and Tags.
You can search for tasks by their ID or name, click the Code Search icon next to the search box for an advanced search, or use the My Tasks shortcut to filter for tasks that you developed. Additionally, you can filter the list by Task Type, Task Status, Scheduling Type, Scheduling Cycle, Developer, Locker, O&M Engineer, Last Commit Status, Data Source Type, Data source, Published, Output Table, Conditional Scheduling, Creation Time, Last Modified Time, Referenced Template, Tags, or Directory.
In the Actions column of a target task, you can perform the following operations.
Actions
Description
View Bulk Operation Records
Click View Bulk Operation Records. On the Bulk Operation Records panel, click the Commit or Other Operations tab to view the corresponding records.
Create Computing Task
Click + Create Computing Task and select a task type to create a new offline computing task.
List Header Settings
Click the
icon above the list to configure the list headers and select which columns to display.Refresh
Click the
icon above the list to refresh the current offline computing task list.Open Task
Click the
icon in the Actions column of a target offline computing task to open it in a new tab. In the task tab, you can edit, configure, and perform other operations on the task.Acquire Lock
Acquire the edit lock for the offline computing task.
Single operation: Click the
icon in the Actions column of a task to acquire its edit lock.Bulk operation:
In the offline computing task list, select multiple tasks, or select the checkbox next to Selected at the bottom of the page to select all tasks.
Click Bulk Acquire Locks at the bottom of the page to acquire the edit locks for all selected tasks.
NoteLocks can be released only on the individual task's tab, not from the Offline Computing Tasks tab.
Locate Directory
Click the
icon in the Actions column of a task to locate it in the computing task tree on the left.Change Developer
Changes the developer in charge of an offline computing task to another user.
Single operation:
Click the
icon in the Actions column of a task and choose Change Developer.In the Change Developer in charge dialog box, select the target user and click OK.
Bulk operation:
In the offline computing task list, select multiple tasks, or select the checkbox next to Selected at the bottom of the page to select all tasks.
Click the
icon at the bottom of the page and choose Bulk Change Developers.In the Bulk Change Developer in charge dialog box, select the target user and click OK.
Go to O&M
Go to the O&M Center to manage the task.
Click the
icon in the Actions column of a task and choose Go to O&M to open the task's O&M page. For more information, see View and manage script tasks and View and manage manual tasks.Modify Referenced Template Version
You can modify the referenced template version for tasks that use a computing template.
Single operation:
Click the
icon in the Actions column of a task and choose Modify Referenced Template Version.In the Modify Referenced Template Version dialog box, select a Template Version and click OK.
Bulk operation:
In the list, select multiple computing tasks that use the same computing template.
Click the
icon at the bottom of the page and choose Bulk Modify Referenced Template Version.In the Bulk Modify Referenced Template Version dialog box, select a Template Version and click OK.
NoteChanges to the template version take effect only after you submit and publish the task.
Take Offline
You can take a Published computing task offline.
Single operation:
Click the
icon in the Actions column of a task and choose Take Offline.In the Take Offline dialog box, enter Remarks (up to 128 characters).
Click OK and Submit.
Bulk operation:
In the offline computing task list, select multiple tasks, or select the checkbox next to Selected at the bottom of the page to select all tasks.
Click the
icon at the bottom of the page and choose Bulk Take Offline.In the Bulk Take Offline dialog box, enter Remarks (up to 128 characters).
Click OK and Submit.
NoteYou cannot take a task offline if it has downstream dependencies in another tenant.
The operation fails if the task is a dependency for any downstream nodes.
After you submit the request, publish the change to the production environment from the list of pending deployments.
Take Offline and Delete
You can take a Published computing task offline and delete it.
Single operation:
Click the
icon in the Actions column of a task and choose Take Offline and Delete.In the Take Offline and Delete dialog box, enter Remarks (up to 128 characters).
Click OK and Submit.
Bulk operation:
In the offline computing task list, select multiple tasks, or select the checkbox next to Selected at the bottom of the page to select all tasks.
Click the
icon at the bottom of the page and choose Bulk Take Offline and Delete.In the Bulk Take Offline and Delete dialog box, enter Remarks (up to 128 characters).
Click OK and Submit.
NoteThe 'take offline and delete' operation will fail if the task has downstream dependencies. For tasks already published to the production environment, this operation only takes them offline and does not delete them.
After the request is submitted, you can go to the list of items pending deployment to publish the change to the production environment.
This operation is unavailable for published objects in a Dev-Prod project if the Published objects can be deleted in the development environment option is disabled. This setting is under R&D Platform Settings > Take Offline and Delete.
Delete
You can delete a computing task that is in the Draft state.
Click the
icon in the Actions column of a task and choose Delete. In the Delete dialog box, enter Remarks, and then click OK and Submit.NoteIn a Dev-Prod project, you cannot delete a draft object if a corresponding object exists in the production environment, unless the Published objects can be deleted in the development environment option is enabled. This option is under R&D Platform Settings > Take Offline and Delete.
Bulk Modify Tags
You can replace or append tags for multiple offline computing tasks.
In the offline computing task list, select multiple tasks, or select the checkbox next to Selected at the bottom of the page to select all tasks.
Click the
icon at the bottom of the page and choose Bulk Modify Tags.In the Bulk Modify Tags dialog box, select a Modification Type and the desired Tags. If you choose Replace, the new tags replace all existing tags on the selected tasks. If you choose Append, the new tags are added to the existing tags.
Click OK to complete the modification.
Bulk Move
You can move multiple offline computing tasks to another directory at the same time.
In the offline computing task list, select multiple tasks, or select the checkbox next to Selected at the bottom of the page to select all tasks.
Click the
icon at the bottom of the page and choose Bulk Move.In the dialog box, enter a folder Name and select a destination Directory.
The folder name cannot exceed 256 characters and cannot contain the following characters: |, /, \, :, ?, <>, *, and ".
Click OK to complete the move.
Bulk Configure Scheduling
ImportantBulk scheduling configuration only applies to periodic tasks.
This operation will overwrite the scheduling properties of the selected tasks. Use with caution. If you change the scheduling type to dry run or pause for tasks that already have conditional scheduling configured, the conditional scheduling will be disabled for those tasks.
You can modify the scheduling configuration for multiple offline computing tasks at the same time. You can modify basic scheduling and conditional scheduling properties in bulk.
Bulk Modify Basic Scheduling: After enabling this option, you can modify the Configuration Method, Scheduling Type, and Scheduling Cycle for the selected tasks. For more information about these settings, see Configure offline pipeline scheduling.
Bulk Modify Conditional Scheduling: This option is disabled by default. After enabling it, you can modify the Configuration Method and Scheduling Conditions for the selected tasks. For more information, see Conditional scheduling.
NoteConditional scheduling only works for tasks with a scheduling type of normal scheduling.
When the configuration method is set to custom, cross-node parameters are not supported as conditions.
The Start Time parameter is only effective for tasks with a scheduling cycle of Day, Week, or Month.
Bulk Configure Dependencies
You can configure dependencies for multiple offline computing tasks at the same time.
In the offline computing task list, select multiple tasks, or select the checkbox next to Selected at the bottom of the page to select all tasks.
Click the
icon at the bottom of the page and choose Bulk Configure Dependencies.In the Bulk Configure Dependencies dialog box, add, delete, or edit dependencies. To add multiple upstream dependencies, click Add Dependency and select Physical Node, Logical Table Node, or Cross-tenant Dependency. For more information about scheduling dependencies, see Configure offline task scheduling dependencies.
Click OK to complete the configuration.
NoteThe list in the Bulk Configure Dependencies dialog box only displays manually added upstream dependencies that are shared by all selected tasks (meaning both the dependency object and its settings are identical). Any additions, deletions, or edits will be applied to all selected tasks.
You can add a cross-tenant dependency only if this feature is enabled for the current tenant.
Bulk Configure Parameters
You can configure parameters for multiple offline computing tasks at the same time. To configure multiple parameters, click + Add Parameter.
In the offline computing task list, select multiple tasks, or select the checkbox next to Selected at the bottom of the page to select all tasks.
Click the
icon at the bottom of the page and choose Bulk Configure Parameters.In the Bulk Configure Parameters dialog box, configure the parameters. To add more parameters, click + Add Parameter. For more information about runtime parameters, see Configure offline task runtime parameters.
Click OK to complete the configuration.
NoteThe available parameters are a combined set of local variables from all selected tasks. The system overwrites the values of the corresponding parameters for all selected tasks. For example, if you set
paramA=valueA, any selected task with a 'paramA' parameter will have its value updated to 'valueA'. Tasks without this parameter are skipped. You cannot use this feature to set the values of workspace name variables or global variables.Bulk Configure Runtime Settings
You can configure runtime settings for multiple offline computing tasks at the same time.
In the offline computing task list, select multiple tasks, or select the checkbox next to Selected at the bottom of the page to select all tasks.
Click the
icon at the bottom of the page and choose Bulk Configure Runtime Settings.In the Bulk Configure Runtime Settings dialog box, configure the Run Timeout and automatic rerun on failure settings. For more information about runtime settings, see Computing task runtime configuration.
Click OK to complete the configuration.
ImportantThis operation will overwrite the runtime settings of the selected tasks. Use with caution.
Change Project
You can move an offline computing task to a different project.
Single operation:
In the directory tree on the left, click the
icon next to the target task and choose Change Project.In the Change Project dialog box, select a Destination Project and Directory, specify a Computing Template (if applicable), and enter a Task Name.
Destination Project: You can select a project within the current tenant for which you have development permissions, and that uses the same mode (either Basic or Dev-Prod) and the same engine type as the current project. You can search for projects by name.
Directory: You can select a directory in the offline computing task tree of the destination project. The default is the
/(root directory).Computing Template: If the task references an offline computing template, and a template of the same task type exists in the destination project, you can select a computing template and version for the task.
Task Name: The name of the task after it is moved to the destination project. By default, it is the current task name. You must change the name if a task with the same name already exists in the destination project.
Click OK.
Bulk operation:
In the offline computing task list, select multiple tasks, or select the checkbox next to Selected at the bottom of the page to select all tasks.
Click the
icon at the bottom of the page and choose Change Project.In the Change Project dialog box, select a Destination Project, Directory, and Computing Template.
Destination Project: You can select a project within the current tenant for which you have development permissions, and that has the same mode (either Basic or Dev-Prod) and the same engine type as the current project. You can search for projects by name.
Directory: You can select a directory in the offline computing task tree of the destination project. The default is the
/(root directory).Computing Template: If the selected tasks are of the same type and some of them reference an offline computing template, you must select a computing template of the same task type and a version from the destination project.
Click OK to complete the project change.
After you change the project of a task:
The task ID, code, and dependencies (upstream and downstream) remain unchanged. The project associated with the task's output table, if any, is also updated, along with any downstream tasks that reference it.
You must go to the destination project to submit and publish the task.
Historical versions of the task in the original project are retained, but you cannot roll back to a version from before the migration. If a bulk project change fails, you can view the failure logs in the bulk operation records.
Modify Data Source
This bulk operation is only supported for SQL tasks that share the same data source type.
In the list, filter for and select the desired SQL tasks. Click the
icon at the bottom of the page and choose Modify Data Source.In the Modify Data Source dialog box, configure the data source information.
Data Source Type: This is determined by the selected tasks and cannot be changed.
Data Source: Select the target data source. The options are limited to existing data sources of the selected type.
Catalog: You must configure the Catalog if the data source type is Presto or Trino.
Database/Schema: By default, the system uses the default value from the data source configuration. You can specify a different Database/Schema.
Click OK to complete the data source modification.
If a bulk data source modification fails, you can view the failure logs in the bulk operation records.