You are here
abandon-jobs
Tue, 05/02/2017 - 09:55 — larrieu
Cancel an undispatched or running job or resolve a problem job by marking it
as a failure.
Usage: abandon-jobs -workflow W [options] <job-selection>
---------------------------------------------------------
Any undispatched jobs will simply be tagged as canceled. Dispatched jobs will
be actively canceled via the batch system. Problem jobs will be tagged as
resolved and placed into the failure list.
Select Jobs by ID
-----------------
To select jobs by id, simply list their id numbers after all other arguments.
No flag is required because this is the default.
Select Jobs by Name: -names
---------------------------
Use this flag to signal that the list of jobs comprises names rather than IDs.
Select Jobs by Error: -problems
-------------------------------
Use this flag to signal that the job-selection list enumerates the problem
categories whose jobs are to be modified.
Use regular expressions: -regexp
--------------------------------
This flag signals that the job selection list contains regular expression
patterns that will be matched against ID, Name, or Problem Class.
Example 1: Abandon all jobs named with trailing numbers in the range [100-300)
------------------------------------------------------------------------------
swif abandon-jobs -names -regexp '.*_[12][0-9]{2}'
Example 2: Abandon all unresolved problem jobs that failed owing to failure to
load input files.
------------------------------------------------------------------------------
swif abandon-jobs -problems AUGER-INPUT-FAIL