cancel
Cancel a job.
Synopsis
cancel [storage=<storage>] [sd=<sd>] [jobid=<jobid>[,...]] [job=<job>]
[ujobid=<ujobid>] [state=<state>] [all] [yes]
Words without brackets are required, [ ] marks optional parts, a | b alternatives, ... a repeatable argument and [,...] a comma separated list.
Description
Cancels running or waiting jobs; without a selection the Director asks for one.
Arguments
| Argument | Type | Values / source | Default | Flags | Description |
|---|---|---|---|---|---|
storage= | resource | from .storages | Jobs of a storage. | ||
sd= | resource | from .storages | Storage name (as storage=). | ||
jobid= | string | list | Job ID. | ||
job= | resource | from .jobs | Job name. | ||
ujobid= | string | Unique job name. | |||
state= | string | Jobs in this state (created, blocked, waiting, running). | |||
all | keyword | Every job. | |||
yes | keyword | Do not ask. |
Examples
Cancel job 42 after confirmation:
cancel jobid=42
Cancel the running BackupClient1 job without asking:
cancel job=BackupClient1 yes
Cancel every waiting job:
cancel state=waiting yes