A check node runs checks based on the conditions configured in its properties. This topic describes how to configure a check node task.
Procedure
In the top menu bar of the Dataphin homepage, select Develop > Data Development.
From the top menu bar on the Develop page, select a Project. If you are using Dev-Prod mode, you must also select an environment.
In the navigation pane on the left, choose Data Processing > Script Task. In the Script Task list, click the
icon and select Check Node.In the Create Check Node Task dialog box, configure the following parameters.
Parameter
Description
Task Name
Enter a name for the code task.
The name can be up to 256 characters long and cannot contain the following characters: vertical bar (|), forward slash (/), backslash (\), colon (:), question mark (?), angle brackets (<>), asterisk (*), and double quotation mark (").
Schedule Type
Select a schedule type for the task. Schedule Type includes the following options:
Recurring Task: The task is automatically scheduled to run at regular intervals.
One-Time Task: Check nodes do not support one-time tasks.
Select Directory
Select the directory to store the code task.
If a directory does not exist, create a new folder as follows:
Above the list of computing tasks on the left, click the
icon to open the Create Folder dialog box.In the Create Folder dialog box, enter a folder Name and select a Directory location as needed.
Click OK.
Description
Enter a brief description of the task. The description can be up to 1000 characters long.
Click OK.
NoteYou cannot edit the code of a check node.
Click Property in the right-side sidebar. In the Property panel, configure the task's Basic Information, Check Conditions, Scheduling Properties, Schedule Dependency, Runtime Configuration, and Resource Configuration.
Basic Information
Define basic information for the scheduled task, such as its name, owner, and description. For more information, see Configure basic task information.
Check Conditions
Parameter
Description
Check Object
Select the check object. Currently, only Real-time Integration Task is supported.
Real-time Integration Task
Select the real-time integration task to check. You can select any submitted real-time integration task in the current tenant.
Output Table
Select the output table to check. You can select an output table from the selected real-time integration task.
Offset Check
Select Offset from scheduled time or Specify offset.
Offset from scheduled time: Enter an integer from -1440 to 1440. The default value is 3 minutes.
Specify offset: Supports variables. For example, use the scheduled time variable
$[yyyy-mm-dd HH:mm:ss]or a specific time such as$[yyyy-mm-dd 15:00:ss]. After configuration, click Preview to preview the parameter value.
Stop Check Policy
When the check time arrives, the system makes periodic attempts based on the stop check policy. If the check condition is still not met, the current check is stopped.
The total check duration cannot exceed 720 minutes (12 hours). The default check interval is 3 minutes and the number of checks is 10. The minimum interval is 1 minute with a maximum of 720 checks. The maximum interval is 10 minutes with a maximum of 72 checks.
Scheduling Properties
In addition to the Basic Information, configure the scheduling properties for the task. For more information, see Configure scheduling properties.
Schedule Dependency
In addition to the Basic Information properties, you can configure the schedule dependencies for the task. For more information, see Configure schedule dependencies.
Runtime Configuration
Configure a task-level runtime timeout and a retry policy for failed offline computing tasks. If these settings are not configured, the task inherits the default settings at the tenant level. For more information, see Configure runtime for computing tasks.
Resource Configuration
Assign a resource group to the current computing task. The task uses resources from this resource group at runtime. For more information, see Configure resources for computing tasks.
Click the Submit icon above the editor pane to submit the current task.
On the Submitting Log page, review the Content to Submit and Pre-check results, and enter any remarks. For more information, see Offline computing task submission instructions.
Click Confirm and Submit.
What to do next
If you are using Dev-Prod mode, you must publish the task to the production environment after you submit it. For more information, see Manage publish tasks.
If you are using Basic mode, the task is automatically scheduled in the production environment after it is submitted. You can view the published task in the Operation Center. For more information, see View and manage script tasks, View and manage one-time tasks.