Monitor service jobs in an Amazon Batch queue - Amazon Batch
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Monitor service jobs in an Amazon Batch queue

You can monitor the status of jobs in your SageMaker Training job queue using list-service-jobs, and get-job-queue-snapshot.

View running jobs in your queue:

aws batch list-service-jobs \ --job-queue my-sm-training-fifo-jq \ --job-status RUNNING

View jobs waiting in the queue:

aws batch list-service-jobs \ --job-queue my-sm-training-fifo-jq \ --job-status RUNNABLE

View jobs that have been submitted to SageMaker but not yet running:

aws batch list-service-jobs \ --job-queue my-sm-training-fifo-jq \ --job-status SCHEDULED

Get a snapshot of jobs at the front of your queue:

aws batch get-job-queue-snapshot --job-queue my-sm-training-fifo-jq

This command shows the order of upcoming service jobs in your queue.

Get detailed information about a specific service job:

aws batch describe-service-job --jobId job-id