Skip to main content

Cancelling a Job

You can cancel any of your jobs that are in PENDING or RUNNING state. Cancelling a running job stops it immediately — any output written so far is kept, but the job will not complete.

How to cancel

  1. Go to the Jobs page.
  2. Click the job row to open the detail panel.
  3. Click Cancel Job.
  4. Confirm the action in the dialog.

The job state changes to CANCELLED within a few seconds. The detail panel updates automatically.

Cancelling from the command line

You can also cancel from a terminal on the cluster:

scancel 

To cancel all your pending jobs at once:

scancel --user=$USER --state=PENDING

Array jobs

Cancelling an array job from the detail panel cancels the entire array — all pending and running tasks are stopped. To cancel a single task within an array, use scancel from the command line:

scancel _

Note on COMPLETING jobs

Jobs in COMPLETING state are already finished and cannot be cancelled. Wait a few seconds for the state to transition to COMPLETED or FAILED.