2.83. hammer 任务
相关任务。
Usage: hammer task [OPTIONS] SUBCOMMAND [ARG] ... Parameters: SUBCOMMAND Subcommand [ARG] ... Subcommand arguments Subcommands: info, show Show task details list, index List tasks progress Show the progress of the task resume Resume all tasks paused in error state Options: -h, --help Print help
2.83.1. hammer 任务信息
显示任务详情
Usage: hammer task <info|show> [OPTIONS] Options: --fields FIELDS Show specified fields or predefined field sets only. (See below) Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for complex parameters --id ID UUID of the task --location-id LOCATION_ID Set the current location context for the request --organization-id ORGANIZATION_ID Set the current organization context for the request -h, --help Print help Predefined field sets: ------------|-----|-------- FIELDS | ALL | DEFAULT ------------|-----|-------- Id | x | x Action | x | x State | x | x Result | x | x Started at | x | x Ended at | x | x Owner | x | x Task errors | x | x ------------|-----|--------
2.83.2. hammer 任务列表
列出任务
Usage: hammer task <list|index> [OPTIONS] Options: --fields FIELDS Show specified fields or predefined field sets only. (See below) Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for complex parameters --location-id LOCATION_ID Set the current location context for the request --order ORDER Sort field and order, eg. ‘id DESC’ --organization-id ORGANIZATION_ID Set the current organization context for the request --page PAGE Page number, starting at 1 --parent-task-id PARENT_TASK_ID UUID of the task --per-page PER_PAGE Number of results per page to return, 'all' to return all results --search SEARCH Filter results -h, --help Print help Predefined field sets: ------------|-----|-------- FIELDS | ALL | DEFAULT ------------|-----|-------- Id | x | x Action | x | x State | x | x Result | x | x Started at | x | x Ended at | x | x Owner | x | x Task errors | x | x ------------|-----|--------
2.83.3. hammer 任务进度
显示任务的进度
Usage: hammer task progress [OPTIONS] Options: --id ID UUID of the task --location LOCATION_NAME Set the current location context for the request --location-id LOCATION_ID Set the current location context for the request --location-title LOCATION_TITLE Set the current location context for the request --name NAME Name to search by --organization ORGANIZATION_NAME Set the current organization context for the request --organization-id ORGANIZATION_ID Set the current organization context for the request --organization-title ORGANIZATION_TITLE Set the current organization context for the request -h, --help Print help
2.83.4. hammer 任务恢复
恢复处于错误状态的所有任务
Usage: hammer task resume [OPTIONS] Options: --fields FIELDS Show specified fields or predefined field sets only. (See below) Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for complex parameters --location LOCATION_NAME Set the current location context for the request --location-id LOCATION_ID Set the current location context for the request --location-title LOCATION_TITLE Set the current location context for the request --organization ORGANIZATION_NAME Set the current organization context for the request --organization-id ORGANIZATION_ID Set the current organization context for the request --organization-title ORGANIZATION_TITLE Set the current organization context for the request --search SEARCH Resume tasks matching search string --task-ids TASK_IDS Resume specific tasks by ID Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for complex parameters --tasks TASK_NAMES Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for complex parameters -h, --help Print help Predefined field sets: ----------------------------------------|-----|-------- FIELDS | ALL | DEFAULT ----------------------------------------|-----|-------- Total tasks found paused in error state | x | x Total tasks resumed | x | x Resumed tasks/task identifier | x | x Resumed tasks/task action | x | x Resumed tasks/task errors | x | x Total tasks failed to resume | x | x Failed tasks/task identifier | x | x Failed tasks/task action | x | x Failed tasks/task errors | x | x Total tasks skipped | x | x Skipped tasks/task identifier | x | x Skipped tasks/task action | x | x Skipped tasks/task errors | x | x ----------------------------------------|-----|--------