Overview
Version
FineDataLink Version | Function Description |
---|---|
4.1.7.3 | / |
4.1.8.2 | Added a version comparison function for published tasks. |
Application Scenario
You may need to separate task development and editing from task execution. In other words, you want to edit and modify scheduled tasks and perform task commissioning in a development environment, and then publish tasks to a stable production environment, ensuring that task development and execution do not interfere with each other.
Function Description
Scheduled Task supports both Development Mode and Production Mode, with code isolated between the two environments.
You can publish tasks in Development Mode to Production Mode with one click.
Compatibility Description
All published scheduled tasks exist in both development and production environments. By default, the Task Record page under O&M Center > Scheduled Task > Running Record displays running records of scheduled tasks in Production Mode.
The event-based scheduling plan of scheduled tasks judges the task running record in the production environment only. Instances generated by running their dependent tasks in the development environment will not trigger task execution.
The Task Record page displays task running records in Production Mode only, excluding those in Development Mode.
When using the Open Platform plugin to invoke tasks via APIs, you can invoke tasks in the production environment only. If no task exists in the production environment, the system will return an error.
The license limits the number of tasks that can be published to the production environment, whereas the number of tasks in the development environment is unrestricted.
When you migrate a scheduled task, the exported and imported content includes the task in both development and production environments and its scheduling plans.
Mode Description
Development Mode is equivalent to the test environment of tasks, where you can design and edit tasks. All modifications will not affect tasks in Production Mode. You can publish tasks in Development Mode.
Tasks in Production Mode are rarely modified and can only be viewed. You can set scheduling plans for these tasks to realize timed scheduling. You can publish tasks in Development Mode to Production Mode. You can check the task publication status under O&M Center > Task Management.
Development Mode | Production Mode | |
---|---|---|
Edit permission |
|
|
View permission |
|
Publication
Click Data Development and create a scheduled task. You will be redirected to the task development page in Development Mode automatically. After designing and editing the task, click the Publish button, as shown in the following figure.
You can see the task version to be generated and the publication validation results. You can also add change descriptions and compare the current task and the task of a specified historical version, as shown in the following figure.
You can see the published task in Production Mode, as shown in the following figure.
The task status on the directory tree of Scheduled Task is changed to Published, as shown in the following figure.
If you modify and save the task in Development Mode, the task status will be changed to To Be Updated, as shown in the following figure.
Restoration
If you do not want to retain the saved modifications to the content in Development Mode, you can click the Restore button to revert the task content to that in Production Mode, as shown in the following figure.
Other Description
1. After you modify a published scheduled task, a small red dot will appear on the upper right corner of the Publish button, indicating that the content in Development Mode and Production Mode is inconsistent and requiring an update, as shown in the following figure.
Click Publish to publish the task to Production Mode.
2. After you publish a scheduled task to Production Mode and set the scheduling frequency, the lastet version of the scheduled task in Production Mode will be executed.
3. Changing the directory of a published scheduled task will not affect task execution.
4. You cannot delete a task in Production Mode while retaining the task in Development Mode. You are advised to duplicate this scheduled task for commissioning.