Canceling a Job

Cancel a running job in Resource Manager.

  • These steps show how to cancel a job in a compartment. You can also cancel a job in a stack.
    1. Open the navigation menu and click Developer Services. Under Resource Manager, click Jobs.
    2. On the Jobs page, select the compartment that contains the job that you want.
    3. Click the name of the job that you want.
      The Job details page opens.
    4. Click Cancel job.
      The Cancel job dialog box is displayed.
    5. If the job is for Import state, Apply, or Destroy, then select the option that you want:
      • Cancel job: Resource Manager attempts to cancel the job gracefully. Internally, the running Terraform process signals the child processes to end. The job might run partially, depending on the responses of the child processes, even though the ultimate job status is Canceled.
      • Force the job to cancel now: Forces the job to cancel.

        Forcing a job to cancel might cause a mismatch between the state file and the actual resource states.
    6. Click Yes, cancel job.
  • Use the oci resource-manager job cancel command and required parameters to cancel a job.

    oci resource-manager job cancel --job-id <job_OCID>

    For a complete list of parameters and values for CLI commands, see the Command Line Reference for Resource Manager.

  • Use the CancelJob operation to cancel a job.