Create a Virtual task

更新时间: 2026-06-23 15:05:30

A virtual node is an optional dependency that you can select when you configure scheduling parameters for a tenant. You can create virtual nodes in Dataphin to simplify dependency management across tasks.

Background information

Before you build a data model, you can create a virtual node for it so that other tasks in the model can depend on this node when configuring scheduling parameters.

Procedure

  1. In the top menu bar of the Dataphin home page, select Development > Data Development.

  2. On the Development page, select Project from the top menu bar (Dev-Prod mode requires environment selection).

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

  4. In the Create Virtual Task dialog box, configure the following parameters.

    Parameter

    Description

    Task Name

    Enter a name for the compute job.

    The length must not exceed 256 characters and must exclude vertical lines (|), forward slashes (/), backslashes (\), colons (:), question marks (?), angle brackets (<>), asterisks (*), and quotation marks (").

    Schedule Type

    Select the scheduling type of the task:

    • Recurring Task: Automatically participates in the system's periodic scheduling.

    • Manual Task: You must manually trigger the task.

    Select Directory

    Select the folder that contains the Job.

    If no directory exists, you can Create Folder using the following steps:

    1. Single click the image icon above the computing task list on the left to open the Create Folder dialog box.

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

    3. Single click Confirm.

    Description

    Enter a brief description of the task, limited to 1000 characters.

  5. Single click Confirm.

  1. In the code editor on the Virtual task tab, write the code for the virtual offline computing task. After you finish writing the code, click Run above the code editor.

  2. Click Property in the right-side pane. In the Property panel, configure properties for the task, such as Basic Information, Runtime Parameter, Scheduling Properties (for recurring tasks), Schedule Dependency (for recurring tasks), Runtime Configuration, and Resource Configuration.

    • Basic Information

      Define the name, owner, description, and other basic details of the task. For guidance on configuration, see Configure Basic Task Information.

    • Runtime Parameter

      If your task uses parameter variables, set their values in this section. During scheduling, the variables are automatically replaced with the specified values. For guidance on configuration, see Configure Offline Task Runtime Parameters.

    • Scheduling Properties (recurring tasks)

      For offline computing tasks set as Recurring Task, you must configure the scheduling properties in addition to the Basic Information. For guidance on configuration, see Configure Offline Task Scheduling Properties.

    • Schedule Dependency (recurring tasks)

      For offline computing tasks set as Recurring Task, you must configure scheduling dependencies in addition to Basic Information. For guidance on configuration, see Configure Offline Task Scheduling Dependencies.

    • Runtime Configuration

      Set the task-level runtime timeout and rerun policies for offline computing tasks. If not specified, tenant-level defaults are used. For guidance on configuration, see Configure Computing Task Runtime.

    • Resource Configuration

      Specify the scheduling resource group for this task. The task consumes the resource quota of the assigned resource group at runtime. For more information, see Configure Computing Task Resources.

  3. On the Virtual task tab, save and submit the task.

    1. Single click the image icon above the code editing area to save the code.

    2. Single click the image icon above the code editing area to submit the code.

  4. On the Submitting Log page, confirm the Submission Content and the Pre-check results, and fill in the remarks. For more information, see Offline Computing Task Submission Instructions.

  5. After confirmation, single click Confirm And Submit.

What to do next

  • In Dev-Prod mode, once the task is successfully submitted, navigate to the release list to publish the task to the production environment. For more information, see Manage Release Tasks.

  • If you use Basic mode, the submitted virtual task is scheduled in the production environment. You can go to the Operation Center to view your published tasks. For more information, see Manage integration and computing tasks, Manage manual tasks.

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