Create a PAI Designer task

更新时间: 2026-03-26 04:34:27

A PAI Designer task is used to call and schedule machine learning tasks that you build on the PAI platform. This topic describes how to create a PAI Designer task.

Prerequisites

Before you start, make sure that the following requirements are met:

Limits

  • Dataphin supports importing only PAI Designer workflows that are created using MaxCompute compute resources.

  • You can create PAI Designer tasks only in Dataphin projects that use MaxCompute as the compute engine.

  • Only the new version of Machine Learning Designer integration is supported.

  • When you create a Machine Learning Designer workspace, you must select MaxCompute as the compute resource.

  • When you configure the PAI workspace, you must publish the scheduled workflow to the workspace. Use the AccessKey (AK) of the MaxCompute offline compute engine for this operation. Dataphin can then retrieve all public and private workflows that are associated with the AK.

  • The amount of MaxCompute resources consumed by PAI tasks is not included in the project's total consumption that is displayed in the asset overview.

  • You must configure PAI parameters on the PAI Designer task.

  • If read or write data table nodes in a PAI Designer workflow access data from tables in other projects, automatic switching between the development and production environments is not supported for these tables. You must specify the data environment to access.

Procedure

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

  2. On the Development page, select a Project from the top menu bar. In Dev-Prod mode, you must also select an environment.

  3. In the navigation pane on the left, choose Data Processing > Script Task. In the Script Task list, click the image icon and choose PAI Designer.

  4. In the New PAI Designer task dialog box, configure the following parameters.

    Parameter

    Description

    Name

    Enter a name for the offline computing task.

    The name can be up to 256 characters in length. It cannot contain vertical bars (|), forward slashes (/), backslashes (\), colons (:), question marks (?), angle brackets (<>), asterisks (*), or double quotation marks (").

    Schedule Type

    Select the subsequent scheduling type for the machine learning task. You can select Recurring Task Node or Manual Node. The details are as follows:

    • Recurring Task Node: The created machine learning node is an auto triggered task. Dataphin automatically schedules it. For more information about auto triggered tasks, see Scheduling methods.

    • One-time Task Node: The created PAI Designer node is a one-time task. You must manually trigger it for subsequent scheduling. For more information about one-time tasks, see Manage one-time tasks.

    Select Directory

    Select the folder where you want to store the task.

    If you do not have a folder, you can create a new folder as follows:

    1. Above the task list on the left, click the image icon to open the New Folder dialog box.

    2. In the New Folder dialog box, enter a Name for the folder and select a location in Select Directory as needed.

    3. Click OK.

    Description

    Enter a brief description of the machine learning task. The description can be up to 1,000 characters in length.

  5. Click OK.

  6. On the tab of the PAI Designer task, click Import Workflow above the code editor to import a developed workflow.

    Note
    • After the workflow is imported, the workflow that you developed in Machine Learning Designer is displayed. You can also click Edit Workflow at the top of the page. You are redirected to the workflow generation page in Machine Learning Designer, where you can edit the workflow. For more information about how to edit a workflow, see Create and manage workflows.
    • If the workflow is not displayed after it is imported, click Refresh Workflow at the top of the page to refresh the workflow in the Machine Learning Designer task.

  7. Click Property in the right-side pane. On the Property tab, configure the Basic Information, Runtime Parameter, Schedule Property (for auto triggered tasks), Schedule Dependency (for auto triggered tasks), Runtime Configuration, and Resource Configuration for the task.

    • Basic Information

      Configure basic information for the task, such as its name, owner, and description. For more information, see Configure basic information of a task.

    • Runtime Parameter

      If your task uses parameter variables, you can assign values to the parameters on this tab. The parameter variables are then automatically replaced with the specified values during scheduling. For more information, see Configure runtime parameters for an offline task.

    • Schedule Property (for auto triggered tasks)

      If the scheduling type of the offline task is Recurring Task, you must configure the scheduling properties of the task in addition to its Basic Information. For more information, see Configure scheduling properties for an offline task.

    • Schedule Dependency (for auto triggered tasks)

      If the scheduling type of the offline task is Recurring Task, you must configure the scheduling dependencies of the task in addition to its Basic Information. For more information, see Configure scheduling dependencies for an offline task.

    • Runtime Configuration

      You can configure a task-level timeout period and a retry policy for when the task fails. These settings are optional. If you do not configure them, the default tenant-level settings are used. For more information, see Configure runtime settings for a compute task.

    • Resource Configuration

      You can configure a scheduling resource group for the current compute task. The compute task consumes the resource quota of this resource group during scheduling. For more information, see Configure resources for a compute task.

  8. On the tab of the PAI Designer task, save and commit the task.

    1. Click the image icon above the code editor to save the code.

    2. Click the image icon above the code editor to commit the code.

  9. On the Submitting Log page, confirm the Submission Content and the results of the Pre-check. Then, enter remarks. For more information, see Instructions on how to commit an offline computing task.

  10. After you confirm the information, click Confirm and Commit.

What to do next

  • In Dev-Prod mode, after a task is committed, you must go to the release list to publish the task to the production environment. For more information, see Manage release tasks.

  • If you use Basic mode, you can schedule a committed PAI Designer task in the production environment. You can then view the published task in the Operation Center. For more information, see Manage integration and compute tasks and Manage one-time tasks.

上一篇: Create a Hologres SQL task 下一篇: Offline task properties
阿里云首页 智能数据建设与治理 Dataphin 相关技术圈