Jobs and files

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

terminal
orc jobs status <id> --json

Check a job's status.

terminal
orc jobs result <id> --json

Get a completed job's artifacts.

Subcommands

list

ジョブを一覧表示

terminal
orc jobs list [options]

Unique options

--type

取得する生成ジョブの種類。省略するとすべての種類を取得します。

Type: string. Optional.

terminal
orc jobs list --type <value>
--types

複数の種類をまとめて取得する場合に、types=image-router&types=video-router のように繰り返して指定します。type と同時には指定できません。; csv

Type: string. Optional.

terminal
orc jobs list --types <value>
--model

取得する生成ジョブのモデル ID。

Type: string. Optional.

terminal
orc jobs list --model <value>
--status

取得するジョブの処理状態。; enum: queued|processing|completed|failed|canceled

Type: string. Optional.

terminal
orc jobs list --status <value>
--hide-failed

true を指定すると、失敗またはキャンセルされたジョブを除外します。

Type: string. Optional.

terminal
orc jobs list --hide-failed <value>
--liked

true を指定すると、ワークスペースでお気に入りに登録された成果物を 1 件以上持つジョブを取得します。

Type: string. Optional.

terminal
orc jobs list --liked <value>
--created-after

指定した日時以降に作成されたジョブを取得します。

Type: string. Optional.

terminal
orc jobs list --created-after <value>
--created-before

指定した日時以前に作成されたジョブを取得します。

Type: string. Optional.

terminal
orc jobs list --created-before <value>
--starting-after

前のページの next_cursor。省略すると新しいジョブから取得します。

Type: string. Optional.

terminal
orc jobs list --starting-after <value>

get

ジョブを取得

terminal
orc jobs get <id> [options]

status

ジョブの状態を取得

terminal
orc jobs status <id> [options]

result

ジョブの結果を取得

terminal
orc jobs result <id> [options]

events

ジョブのイベントを一覧表示

terminal
orc jobs events <id> [options]

cancel

ジョブをキャンセル

terminal
orc jobs cancel <id> [options]

Examples

List the Workspace's failed jobs.

terminal
orc jobs list --status failed --json

List the Workspace's failed jobs.

Show the state history.

terminal
orc jobs events <id> --json

Show the state history.

Cancel a queued job.

terminal
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.