次のような場合に使用: - ユーザーが非同期のクラウドジョブ(バックアップ、復元、移行、インポート、またはクローン作成)のステータスを確認したい場合 - ユーザーが長時間実行される処理の完了を待ちたい場合
Use when the user wants to check the status of an async Cloud Job (backup, restore, migration, import, or clone). Also use when the user wants to wait for a long-running operation to complete.
zilliz job describe --job-id <job-id>
job describe コマンドは --wait フラグをサポートしており、ジョブが完了するまでポーリングを続けます:
# 完了までポーリング(デフォルト: 5秒間隔、30分タイムアウト)
zilliz job describe --job-id <job-id> --wait
# タイムアウトと間隔をカスタム指定
zilliz job describe --job-id <job-id> --wait --timeout 600 --interval 10
| タイプ | トリガーとなる操作 |
|---|---|
| BACKUP | backup create |
| RESTORE | backup restore-cluster、backup restore-collection |
| IMPORT | import start |
| MIGRATION | クラウドマイグレーション操作 |
| CLONE_COLLECTION | コレクションのクローン操作 |
| ステータス | 意味 |
|---|---|
| PENDING | ジョブがキューに入っている |
| IN_PROGRESS | ジョブが実行中 |
| SUCCESSFUL | ジョブが正常に完了した |
| FAILED | ジョブが失敗した(reason フィールドを確認) |
| CANCELING | ジョブのキャンセル処理中 |
| CANCELED | ジョブがキャンセルされた |
jobId を返します。進捗を追跡するには job describe の使用を推奨してください。reason フィールドにエラーメッセージが含まれます。ユーザーに表示してください。--wait の使用を提案してください。--wait フラグはリアルタイムの進捗スピナーを表示します。ユーザーは Ctrl+C を押すことで、ジョブ自体をキャンセルすることなく待機を中断できます。zilliz job describe --job-id <job-id>
The job describe command supports a --wait flag to poll until the job finishes:
# Poll until done (default: 5s interval, 30min timeout)
zilliz job describe --job-id <job-id> --wait
# Custom timeout and interval
zilliz job describe --job-id <job-id> --wait --timeout 600 --interval 10
| Type | Triggered By |
|---|---|
| BACKUP | backup create |
| RESTORE | backup restore-cluster, backup restore-collection |
| IMPORT | import start |
| MIGRATION | Cloud migration operations |
| CLONE_COLLECTION | Collection clone operations |
| Status | Meaning |
|---|---|
| PENDING | Job is queued |
| IN_PROGRESS | Job is running |
| SUCCESSFUL | Job completed successfully |
| FAILED | Job failed (check reason field) |
| CANCELING | Job is being cancelled |
| CANCELED | Job was cancelled |
jobId. Suggest using job describe to track progress.reason field contains the error message. Display it to the user.--wait so the user doesn't have to poll manually.--wait flag shows a live progress spinner. Users can press Ctrl+C to stop waiting without cancelling the job itself.原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。