job wait#

Description#

ジョブの終了を待ちます。

Examples#

基本的な使い方#

--job_type にジョブの種類を指定してください。 --job_type に指定できる値は Command line options を参照してください。

以下のコマンドは、「アノテーションzipの更新」ジョブが終了するまで待ちます。

$ annofabcli job wait --project_id prj1  --job_type gen-annotation

Usage Details#

ジョブの終了を待ちます。

usage: annofabcli job wait [-h] [--yes] [--endpoint_url ENDPOINT_URL]
                           [--annofab_user_id ANNOFAB_USER_ID]
                           [--annofab_password ANNOFAB_PASSWORD]
                           [--mfa_code MFA_CODE] [--logdir LOGDIR]
                           [--disable_log] [--debug] -p PROJECT_ID --job_type
                           {copy-project,gen-inputs,gen-tasks,gen-annotation,gen-tasks-list,gen-inputs-list,delete-project,invoke-hook,move-project}
                           [--job_id JOB_ID] [--wait_options WAIT_OPTIONS]

Named Arguments#

-p, --project_id

対象のプロジェクトのproject_idを指定します。

--job_type

Possible choices: copy-project, gen-inputs, gen-tasks, gen-annotation, gen-tasks-list, gen-inputs-list, delete-project, invoke-hook, move-project

ジョブタイプを指定します。

--job_id

ジョブIDを指定します。未指定の場合は、最新のジョブが終了するまで待ちます。

--wait_options

ジョブの終了を待つときのオプションをJSON形式で指定してください。file://`を先頭に付けるとjsonファイルを指定できます。デフォルとは`{"interval":60, "max_tries":360} です。interval:ジョブが完了したかを問い合わせる間隔[秒], max_tires:ジョブが完了したかの問い合わせを最大何回行うか。

global optional arguments#

--yes

処理中に現れる問い合わせに対して、常に yes と回答します。

--endpoint_url

Annofab WebAPIのエンドポイントを指定します。

Default: "https://annofab.com"

--annofab_user_id

Annofabにログインする際のユーザーID

--annofab_password

Annofabにログインする際のパスワード

--mfa_code

Annofabにログインする際のMFAコード

--logdir

ログファイルを保存するディレクトリを指定します。

Default: .log

--disable_log

ログを無効にします。

--debug

HTTPリクエストの内容やレスポンスのステータスコードなど、デバッグ用のログが出力されます。