jobs
orc jobs works with the jobs that image generate, video generate, tts generate and voice change create. jobs status returns the state, jobs result the artifacts, and jobs events the state history.
A job ends as COMPLETED, FAILED or CANCELED. Only queued jobs can be canceled. See Polling for status intervals.
Usage
orc jobs status <id> --jsonCheck a job's status.
orc jobs result <id> --jsonGet a completed job's artifacts.
Subcommands
list
ジョブを一覧表示
orc jobs list [options]Unique options
--type
取得する生成ジョブの種類。省略するとすべての種類を取得します。
Type: string. Optional.
orc jobs list --type <value>--types
複数の種類をまとめて取得する場合に、types=image-router&types=video-router のように繰り返して指定します。type と同時には指定できません。; csv
Type: string. Optional.
orc jobs list --types <value>--model
取得する生成ジョブのモデル ID。
Type: string. Optional.
orc jobs list --model <value>--status
取得するジョブの処理状態。; enum: queued|processing|completed|failed|canceled
Type: string. Optional.
orc jobs list --status <value>--hide-failed
true を指定すると、失敗またはキャンセルされたジョブを除外します。
Type: string. Optional.
orc jobs list --hide-failed <value>--liked
true を指定すると、ワークスペースでお気に入りに登録された成果物を 1 件以上持つジョブを取得します。
Type: string. Optional.
orc jobs list --liked <value>--created-after
指定した日時以降に作成されたジョブを取得します。
Type: string. Optional.
orc jobs list --created-after <value>--created-before
指定した日時以前に作成されたジョブを取得します。
Type: string. Optional.
orc jobs list --created-before <value>--starting-after
前のページの next_cursor。省略すると新しいジョブから取得します。
Type: string. Optional.
orc jobs list --starting-after <value>get
ジョブを取得
orc jobs get <id> [options]status
ジョブの状態を取得
orc jobs status <id> [options]result
ジョブの結果を取得
orc jobs result <id> [options]events
ジョブのイベントを一覧表示
orc jobs events <id> [options]cancel
ジョブをキャンセル
orc jobs cancel <id> [options]Examples
List the Workspace's failed jobs.
orc jobs list --status failed --jsonList the Workspace's failed jobs.
Show the state history.
orc jobs events <id> --jsonShow the state history.
Cancel a queued job.
orc jobs cancel <id>Cancel a queued job.
Permissions
Requires CLI authentication (orc auth login or ORCHESTOR_API_KEY) and access to the target Workspace. Canceling a job requires write access.
Global Options
The following global options can be used with orc jobs:
For details and examples, see global options.