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. On the Jobs list page, find the job that you want to work with. If you need help finding the list page or the stack, see Listing Jobs.
    2. From the Actions menu (Actions Menu) for the job, select Cancel.
      The Cancel job dialog box opens.
    3. 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.
        Note

        Forcing a job to cancel might cause a mismatch between the state file and the actual resource states.
    4. Select 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.