All Products
Search
Document Center

Dataphin:Create VIRTUAL task

Last Updated:Jan 21, 2025

Virtual nodes are optional dependency nodes when tenants configure scheduling parameters. This topic describes how to create a virtual node of VIRTUAL type based on Dataphin.

Background information

Before you start building a data model, you can create a virtual node based on the data model to facilitate the configuration of scheduling parameters for other tasks in the data model.

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 left-side navigation pane, select Data Processing > Script Task, and in the Script Task list, single click the image icon and select VIRTUAL.

  4. In the New VIRTUAL Task dialog box, configure the following parameters.

    Parameter

    Description

    Task Name

    Enter the name of the computing task, ensuring it does not exceed 256 characters and does not contain vertical lines (|), forward slashes (/), backslashes (\), colons (:), question marks (?), angle brackets (<>), asterisks (*), or quotation marks (").

    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.

    • One-Time Task: Requires manual triggering to run the task.

    Select Directory

    Select the directory where the task will be stored. If no directory exists, create one as follows:

    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 editing area under the current VIRTUAL task tab, write the code for the VIRTUAL offline computing task. After completing the code, single click Run above the code editing area.

  2. Single click the Property in the right sidebar. In the Property panel, configure the node's Basic Information, Runtime Parameter, Schedule Property (auto triggered node), Schedule Dependency (auto triggered node), Runtime Configuration and other information.

    • Basic Information

      This section is dedicated to defining the name, responsible individual, description, and other fundamental details of the scheduling task. For guidance on configuration, see Configure Basic Task Information or .

    • Runtime Parameter

      If your task involves calling parameter variables, you can set values for these parameters in the properties section. This ensures that during node scheduling, the parameter variables are automatically substituted with their respective values. For guidance on configuration, see Configure and Use Node Parameters and .

    • 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 Scheduling Properties or .

    • Schedule Dependency (recurring tasks)

      For offline computing tasks set as Recurring Task, you must not only provide Basic Information but also set up the task's scheduling dependencies. For guidance on configuration, see Configure Scheduling Dependencies and .

    • Runtime Configuration

      You can set the task-level runtime timeout and rerun policies for offline computing tasks to suit your business needs. If these are not specified, they will default to the values established at the tenant level. For guidance on how to configure these settings, see Configure Computing Task Runtime and .

  3. In the current 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. In the Submitting Log page, you need to confirm the Submission Content and the results of the Pre-check, 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 or .

  • If your development mode is Basic mode, the successfully submitted VIRTUAL task can participate in the production environment scheduling. You can go to the Operation Center to view your published tasks. For more information, see View and Manage Script Tasks, View and Manage One-Time Tasks.