Updated on 2024-04-19 GMT+08:00

Executing a Custom Job

Execute recorded custom jobs.

Scenarios

Execute a custom job on Cloud Operations Center.

Precautions

Before executing a job, ensure that you have the resource permissions of target instances.

Procedure

  1. Log in to COC.
  2. In the navigation pane on the left, choose Automated O&M and click Jobs.

    Figure 1 Job Management page

  3. Select Custom Jobs, select the job to be executed, and click Execute.

    Figure 2 Selecting the job to be executed

  4. Select a job version number and check whether the job steps meet the expectation.

    Figure 3 Checking the job steps

  5. Enter basic execution information, including the execution description and tag. You can create tags by following the instructions provided in Tag Management.

    Figure 4 Entering basic execution information

  6. Select the execution mode of the job on the target instance. The options are Consistent for all steps and Unique for each step.

    Table 1 Target instance mode description

    Target Instance Mode

    Description

    Consistent for all steps

    All steps in this job are performed on the target instance in sequence.

    Unique for each step

    Customized configuration. You can configure that the specified step is executed only on the specified target instance.

    Figure 5 Selecting Consistent for all steps
    Figure 6 Selecting Unique for each step

  7. Click Add Instances. In the displayed dialog box, select the target region, search for the target instances by name or UniAgent status and select them, click OK.

    Figure 7 Selecting the target instance

  8. Select a batch policy.

    • Automatic: The selected instances are divided into multiple batches based on the default rule.
    • Manual: You can manually divide instances into multiple batches as needed.
    • No batch: All target instances are in the same batch.
    Figure 8 Selecting a batch policy

  9. Click Submit to execute the custom job. The Job Ticket Details page is displayed. View the execution status of jobs and each batch on the details page.

    Click Forcibly End to forcibly end all tasks of the current job.

    Click Terminate All to end the execution tasks of all batches in the current step.
    Figure 9 Job ticket details