swif2 tag-job

Set or clear a named value associated with a swif2 job.

Usage

swif2 tag-job <workflow> [options] (-name <job-name> | -jid <job-id>) -tag <tag-name> <tag-value> ...
swif2 tag-job <workflow> [options] (-name <job-name> | -jid <job-id>) -untag <tag-name> ...

Associate tag with job <job> having name <tag-name> and value <tag-value>. A job may have any number of tags, and multiple jobs can be assigned the same tags if desired.

A tag is removed by specifying -untag <tag-name>. You can specify multiple -tag or -untag sets per invocation.

Arguments

Flag Value Comment
-name job name Select job by name.
-jid swif job id Select job by id.
-tag tag-name tag-value Specify tag (name, value) pair.
-untag tag-name Clear value associated with tag-name.

Examples

Set tag t1=hello on job named my-job-1 in workflow my-wf.

swif2 tag-job my-wf -name my-job-1 -tag t1 hello

Unset tags t1 and t2 on job with swif id 123 in workflow my-wf.

swif2 tag-job my-wf -jid 123 -untag t1 -untag t2