搜索

2.83. hammer 任务

download PDF

相关任务。

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
  ----------------------------------------|-----|--------
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.