osmo task#
usage: osmo task [-h] {list} ...
Positional Arguments#
commandPossible choices: list
Sub-commands#
list#
List tasks with different filters.
osmo task list [-h] [--status STATUS [STATUS ...]]
[--workflow-id WORKFLOW_ID]
[--user USER [USER ...] | --all-users]
[--pool POOL [POOL ...] | --node NODE [NODE ...]]
[--started-after STARTED_AFTER]
[--started-before STARTED_BEFORE] [--count COUNT]
[--offset OFFSET] [--order {asc,desc}]
[--verbose | --summary] [--aggregate-by-workflow]
[--priority {HIGH,NORMAL,LOW} [{HIGH,NORMAL,LOW} ...]]
[--format-type {json,text}]
Named Arguments#
--status, -sPossible choices: WAITING, PROCESSING, SCHEDULING, INITIALIZING, RUNNING, FAILED, COMPLETED, FAILED_EXEC_TIMEOUT, FAILED_START_ERROR, FAILED_START_TIMEOUT, FAILED_SERVER_ERROR, FAILED_BACKEND_ERROR, FAILED_QUEUE_TIMEOUT, FAILED_IMAGE_PULL, FAILED_UPSTREAM, FAILED_EVICTED, FAILED_PREEMPTED, FAILED_CANCELED
Display all tasks with the given status(es). Users can pass multiple values to this flag. Defaults to PROCESSING, SCHEDULING, INITIALIZING and RUNNING. Acceptable values: WAITING, PROCESSING, SCHEDULING, INITIALIZING, RUNNING, FAILED, COMPLETED, FAILED_EXEC_TIMEOUT, FAILED_START_ERROR, FAILED_START_TIMEOUT, FAILED_SERVER_ERROR, FAILED_BACKEND_ERROR, FAILED_QUEUE_TIMEOUT, FAILED_IMAGE_PULL, FAILED_UPSTREAM, FAILED_EVICTED, FAILED_PREEMPTED, FAILED_CANCELED.
Default:
['PROCESSING', 'SCHEDULING', 'INITIALIZING', 'RUNNING']--workflow-id, -wDisplay workflows which contains the string.
--user, -uDisplay all tasks by this user. Users can pass multiple values to this flag.
Default:
[]--all-users, -aDisplay all tasks with no filtering on users.
Default:
False--pool, -pDisplay all tasks by this pool. Users can pass multiple values to this flag. If not specified, all pools will be selected.
Default:
[]--node, -nDisplay all tasks which ran on this node. Users can pass multiple values to this flag. If not specified, all nodes will be selected.
Default:
[]--started-afterFilter for tasks that were started after AND including this date. Must be in format YYYY-MM-DD. Example: –started-after 2023-05-03.
--started-beforeFilter for tasks that were started before (NOT including) this date. Must be in format YYYY-MM-DD. Example: –started-after 2023-05-02 –started-before 2023-05-04 includes all tasks that were started any time on May 2nd and May 3rd only.
--count, -cDisplay the given count of tasks. Default value is 20. Max value of 1000.
Default:
20--offset, -fUsed for pagination. Returns starting tasks from the offset index.
Default:
0--order, -oPossible choices: asc, desc
Display in the order in which tasks were started. asc means latest at the bottom. desc means latest at the top.
Default:
'asc'--verbose, -vDisplay storage, cpu, memory, and gpu request.
Default:
False--summary, -SDisplays resource request grouped by user and pool.
Default:
False--aggregate-by-workflow, -WAggregate resource request by workflow.
Default:
False--priorityPossible choices: HIGH, NORMAL, LOW
Filter tasks by priority levels.
--format-type, -tPossible choices: json, text
Specify the output format type (Default text).
Default:
'text'