mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
7bde763b66
Closes #16332 Previously `coder provisioner jobs list` showed no indication of what a workspace build job was doing (i.e., start, stop, or delete). This adds `workspace_build_transition` to the provisioner job metadata, exposed in both the REST API and CLI. Template and workspace name columns were also added, both available via `-c`. ``` $ coder provisioner jobs list -c id,type,status,"workspace build transition" ID TYPE STATUS WORKSPACE BUILD TRANSITION 95f35545-a59f-4900-813d-80b8c8fd7a33 template_version_import succeeded 0a903bbe-cef5-4e72-9e62-f7e7b4dfbb7a workspace_build succeeded start ```
31 lines
1.2 KiB
Plaintext
31 lines
1.2 KiB
Plaintext
coder v0.0.0-devel
|
|
|
|
USAGE:
|
|
coder provisioner jobs list [flags]
|
|
|
|
List provisioner jobs
|
|
|
|
Aliases: ls
|
|
|
|
OPTIONS:
|
|
-O, --org string, $CODER_ORGANIZATION
|
|
Select which organization (uuid or name) to use.
|
|
|
|
-c, --column [id|created at|started at|completed at|canceled at|error|error code|status|worker id|worker name|file id|tags|queue position|queue size|organization id|initiator id|template version id|workspace build id|type|available workers|template version name|template id|template name|template display name|template icon|workspace id|workspace name|workspace build transition|logs overflowed|organization|queue] (default: created at,id,type,template display name,status,queue,tags)
|
|
Columns to display in table output.
|
|
|
|
-i, --initiator string, $CODER_PROVISIONER_JOB_LIST_INITIATOR
|
|
Filter by initiator (user ID or username).
|
|
|
|
-l, --limit int, $CODER_PROVISIONER_JOB_LIST_LIMIT (default: 50)
|
|
Limit the number of jobs returned.
|
|
|
|
-o, --output table|json (default: table)
|
|
Output format.
|
|
|
|
-s, --status [pending|running|succeeded|canceling|canceled|failed|unknown], $CODER_PROVISIONER_JOB_LIST_STATUS
|
|
Filter by job status.
|
|
|
|
———
|
|
Run `coder --help` for a list of global options.
|