Managing Jobs
Once a custom job is created, you can review, modify, clone, or delete it. You can manage custom jobs under your account on the TMS console.
Precautions
When modifying or cloning a job, determine and fill out the risk level of the job.
Constraints
Public jobs cannot be reviewed, modified, cloned, deleted, or managed.
Viewing a Job
- Log in to COC.
- In the navigation pane, choose Resource O&M > Automated O&M.
- In the Routine O&M area, click Job Management. The Job Management page is displayed.
- On the script management page, you can view basic job information, such as the job name, version number, risk level, and creator.
- Click Custom Jobs or Public Jobs to switch to the corresponding tab page. Figure 1 Viewing a custom job
Figure 2 Viewing a public job
- Click a job name to go to the job details page and view the job details. Figure 3 Viewing job details
Reviewing a Custom Job
If you have set the job review configurations by referring to Setting Job Review Configurations in the review configurations, a job created based on Creating a Custom Job can be executed only after being approved.
- Log in to COC.
- In the navigation pane, choose Resource O&M > Automated O&M.
- In the Routine O&M area, click Job Management. The Job Management page is displayed.
- On the Custom Jobs tab page, locate the job to be approved and click Approve in the Operation column.
- Set the review comments. Figure 4 Setting the review comments
- Passed or Not: Passed or Not Passed
- Review Comment: Enter review comments.
- Click OK. The custom job is approved.
Modifying a Custom Job
After a custom job is created, you can modify it based on service changes.
- Log in to COC.
- In the navigation pane, choose Resource O&M > Automated O&M.
- In the Routine O&M area, click Job Management. The Job Management page is displayed.
- On the Custom Jobs tab page, locate the job you want to modify and click Modify in the Operation column. Figure 5 Modifying a job
- Set parameters on the displayed page. The parameters are the same as those for creating a custom job. For details, see Creating a Job.
- Click OK. The custom job is modified.
Cloning a Custom Job
O&M personnel can clone custom jobs of databases to swiftly back up jobs of the same type across various service clusters, eliminating repeated parameters setups.
- Log in to COC.
- In the navigation pane, choose Resource O&M > Automated O&M.
- In the Routine O&M area, click Job Management. The Job Management page is displayed.
- On the Custom Jobs tab page, locate the job you want to clone, click More, and choose Clone in the Operation column. Figure 6 Cloning a job
- (Optional) Set parameters on the displayed page. The parameters are the same as those for creating a custom job. For details, see Creating a Job.
- Click OK. The custom job is cloned.
Deleting a Custom Job
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 area, click Job Management. The Job Management page is displayed.
- On the Custom Jobs tab page, locate the job you want to delete, click More, and choose Delete in the Operation column. Figure 7 Deleting a job
- Click OK.
Managing Job Tags
Tag Management Service (TMS) enables you to use tags to manage custom jobs. TMS works with other cloud services to enable tag management. TMS manages tags globally, and other cloud services use these tags to manage their specific tasks.
- You are advised to set pre-defined tags on the TMS console.
- A tag consists of a key and a value. You can add only one value for each key.
- Each job can have up to 20 tags.
To manage tags, perform the following steps:
- Log in to COC.
- In the navigation pane, choose Resource O&M > Automated O&M.
- In the Routine O&M area, click Job Management. The Job Management page is displayed.
- Click the Custom Jobs tab to view the custom job list.
- Move the cursor over
in the tag column of the target job. A tooltip is displayed. Click Modify Tag. If the tag column is not displayed, click
on the right and select Tag.Figure 8 Managing tags
- In the Modify Tag drawer, add, modify, or delete tags.
Table 1 Parameters for modifying a tag Function
Description
Adding a tag
- Click Add Tag and enter a tag key and a value.
- When you enter a tag key and a value, the system automatically displays all predefined tags associated with the current user.
- A tag key can contain letters, digits, spaces, and any of the following characters: _.:=+-@. The value cannot start or end with spaces or start with _sys_. A maximum of 128 characters are allowed.
- A tag value can contain letters, digits, spaces, and any of the following characters: _.:/=+-@. The value cannot start or end with spaces. A maximum of 255 characters are allowed.
Modifying an existing tag
Click the key or value of a tag and enter a new key or value.
Deleting a tag
Select the tag you want to delete and click
. - Click Add Tag and enter a tag key and a value.
- Click OK.
You can quickly search for custom jobs based on the added tags.
Figure 9 Filtering jobs by tag
Helpful Links
COC can create, modify, execute, delete, and query job tickets by calling APIs. For details, see Job Management.
Feedback
Was this page helpful?
Provide feedbackThank 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