View a markdown version of this page

Service job queue blocked events - 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).

Service job queue blocked events

Anytime that Amazon Batch detects a blocked queue, an event is created in Amazon CloudWatch Events. The reason for the blocked queue is available in the statusReason field in the DescribeServiceJob API action.

Example Service Job Queue Blocked Event

Service job queue blocked events are delivered in the following format. The detail section resembles the response that's returned from the DescribeServiceJob API operation in the Amazon Batch API Reference. For more information about EventBridge parameters, see Events and Event Patterns in the Amazon EventBridge User Guide.

Note

The tags and serviceRequestPayload fields are not included in the event detail.

{ "version": "0", "id": "c8f9c4b5-76e5-d76a-f980-7011e206042b", "detail-type": "Batch Service Job Queue Blocked", "source": "aws.batch", "account": "123456789012", "time": "2022-01-11T23:36:40Z", "region": "us-east-1", "resources": [ "arn:aws-cn:batch:us-east-1:123456789012:service-job/4c7599ae-0a82-49aa-ba5a-4727fcce14a8" ], "detail": { "attempts": [], "createdAt": 1641944200058, "jobArn": "arn:aws-cn:batch:us-east-1:123456789012:service-job/4c7599ae-0a82-49aa-ba5a-4727fcce14a8", "jobId": "6271dfdf-d8a7-41b1-a4d2-55a2224f5375", "jobName": "event-test", "jobQueue": "arn:aws-cn:batch:us-east-1:123456789012:job-queue/HappyPathJobQueue", "serviceJobType": "SAGEMAKER_TRAINING", "status": "RUNNABLE", "statusReason": "blocked-reason", "timeoutConfig": { "attemptDurationSeconds": 60 } } }