Managing Scheduled Tasks
To ensure the compliance and controllability of scheduled O&M tasks and meet the refined management requirements of services for O&M operations, you can review, enable, disable, modify, and delete scheduled O&M tasks to flexibly control the lifecycles and execution status of tasks.
- Reviewing a scheduled task: If the enterprise administrator configures manual reviews for scheduled O&M tasks, the tasks can be enabled, disabled, or modified only after being reviewed by the reviewer.
- Enabling or disabling a scheduled task: A scheduled O&M task does not take effect in the disabled state. It can be enabled only in the disabled state or vice versa.
- Modifying a scheduled task: You can modify the name, version, and type of a scheduled O&M task as required.
- Deleting a scheduled task: If a scheduled O&M task is no longer used, you can delete it.
- Viewing the execution records of a scheduled task: After a scheduled task is executed, a historical record is generated. The historical record includes script and job tickets. You can click each ticket to view its details.
When managing scheduled O&M tasks, you can clearly understand the execution and expiration statuses of tasks through the status field.
Status indicates the status of an O&M task, and Latest Execution Status indicates the status of the latest script or job execution.
Constraints
- The task expiration status change applies only to approved tasks. The status of to-be-reviewed and rejected tasks remains unchanged.
- A one-off task expires after being executed, and a periodic task expires after the last execution.
Reviewing a Scheduled Task
Only the task whose reviewer is the current login account can be reviewed. Only approved scheduled tasks can be enabled.
- Log in to COC.
- In the navigation pane, choose Resource O&M > Automated O&M.
- In the Routine O&M module, click Scheduled O&M. The Scheduled O&M page is displayed.
- Locate the task to be review and click the task name.
- Click Review.
- In the dialog box that is displayed, enter the review comments.
- Passed or Not: Passed or Not Passed
- Review Comment: Enter review comments.
Figure 1 Entering the review comments
- Click OK. The scheduled task is reviewed.
After the review is complete, the task status changes from Pending review to Normal.
Enabling or Disabling a Scheduled Task
When enabling or disabling a scheduled task, note that you can enable or disable only the scheduled tasks created by yourself.
For details, see the following steps:
- Log in to COC.
- In the navigation pane, choose Resource O&M > Automated O&M.
- In the Routine O&M module, click Scheduled O&M. The Scheduled O&M page is displayed.
- Select the task to be modified and click Enable or Disable in the Operation column to enable or disable the scheduled task. Figure 2 Enabling a task
Figure 3 Disabling a task
- After a scheduled task is enabled, the system automatically executes the task at the execution time.
- After a scheduled task is disabled, it can be deleted and cannot be executed.
Cloning a Scheduled Task
- Log in to COC.
- In the navigation pane, choose Resource O&M > Automated O&M.
- In the Routine O&M module, click Scheduled O&M. The Scheduled O&M page is displayed.
- Locate the task to be cloned and choose More > Clone in the Operation column. The page for cloning a scheduled task is displayed. Figure 4 Cloning a scheduled task
- Click OK to complete the cloning of the scheduled task.
The configuration of the cloned task is the same as that of the original task.
Modifying a Scheduled Task
When modifying a scheduled task, pay attention to the following:
- Only scheduled tasks in the pending review or disabled state can be modified.
- After a scheduled task is modified and enabled again, it will be executed at the new execution time.
For details, see the following steps:
- Log in to COC.
- In the navigation pane, choose Resource O&M > Automated O&M.
- In the Routine O&M module, click Scheduled O&M. The Scheduled O&M page is displayed.
- Locate the task you want to modify and click Modify in the Operation column.
- Set parameters on the displayed page. The parameters are the same as those for creating a scheduled task. For details, see Creating a Scheduled Task.
- Click OK. The scheduled task is modified.
Deleting a Scheduled Task
Only scheduled tasks in the disabled state can be deleted. Deleted jobs cannot be restored. Exercise caution when performing this operation.
- Log in to COC.
- In the navigation pane, choose Resource O&M > Automated O&M.
- In the Routine O&M module, click Scheduled O&M. The Scheduled O&M page is displayed.
- Locate the task you want to delete and choose More > Delete in the Operation column. Figure 5 Deleting a Scheduled Task
- In the displayed dialog box, click OK to delete the scheduled task.
After the task is deleted, it will no longer be displayed in the scheduled task list.
Viewing the Execution Records of a Scheduled Task
You can view the execution records of a scheduled task. The records include script and job tickets. You can click each ticket to view its details.
- Log in to COC.
- In the navigation pane, choose Resource O&M > Automated O&M.
- In the Routine O&M module, click Scheduled O&M. The Scheduled O&M page is displayed.
- Locate the target task and choose More > Execution Record in the Operation column.
- Click the service ticket ID in the service ticket execution list to go to the service ticket details page.
For details about the operations on the service ticket details page, see Viewing the Execution Record of a Job Service Ticket or Viewing the Execution Record of a Job Service Ticket.
Helpful Links
- To use a scheduled task to automatically restart ECSs, see Automatically Restarting an ECS at a Specified Time.
- Use COC scheduled ECS startup/shutdown to cut costs generated by idle ECSs during off-peak hours. For details, see Saving Costs Through Scheduled Startup and Shutdown on COC.
- COC enables you to create, enable, disable, modify, and delete scheduled tasks through API calls. For details, see Scheduled O&M.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot