Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ ARGS:
[job-definition-id]
[project-id]
[state] (unknown_state | queued | scheduled | running | succeeded | failed | canceled | internal_error)
[states.{index}] (unknown_state | queued | scheduled | running | succeeded | failed | canceled | internal_error)
[organization-id]
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw | all)

Expand Down
1 change: 1 addition & 0 deletions docs/commands/jobs.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ scw jobs run list [arg=value ...]
| job-definition-id | | |
| project-id | | |
| state | One of: `unknown_state`, `queued`, `scheduled`, `running`, `succeeded`, `failed`, `canceled`, `internal_error` | |
| states.{index} | One of: `unknown_state`, `queued`, `scheduled`, `running`, `succeeded`, `failed`, `canceled`, `internal_error` | |
| organization-id | | |
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw`, `all` | Region to target. If none is passed will use default region from the config |

Expand Down
16 changes: 16 additions & 0 deletions internal/namespaces/jobs/v1alpha1/jobs_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -836,6 +836,22 @@ func jobsRunList() *core.Command {
"internal_error",
},
},
{
Name: "states.{index}",
Required: false,
Deprecated: false,
Positional: false,
EnumValues: []string{
"unknown_state",
"queued",
"scheduled",
"running",
"succeeded",
"failed",
"canceled",
"internal_error",
},
},
{
Name: "organization-id",
Required: false,
Expand Down
Loading