aws-cdk icon indicating copy to clipboard operation
aws-cdk copied to clipboard

(batch): missing JobStateTimeLimitActions in the JobQueue Construct

Open mazyu36 opened this issue 1 year ago • 3 comments

Describe the feature

Missing JobStateTimeLimitActions in the JobQueue Construct.

https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/UserGuide/aws-resource-batch-jobqueue.html#cfn-batch-jobqueue-jobstatetimelimitactions

Use Case

To react to blocked job queues.

It has been added at 2024/3.

https://aws.amazon.com/jp/blogs/hpc/introducing-new-alerts-to-help-users-detect-and-react-to-blocked-job-queues-in-aws-batch/

Proposed Solution

Add JobStateTimeLimitActions property the JobQueue Construct.

Other Information

No response

Acknowledgements

  • [X] I may be able to implement this feature request
  • [ ] This feature might incur a breaking change

CDK version used

2.141.0

Environment details (OS name and version, etc.)

MacOS

mazyu36 avatar May 10 '24 09:05 mazyu36

Hey @mazyu36 I am looking forward to all your PRs. Feel free to submit for that. Thank you.

pahud avatar May 10 '24 12:05 pahud

Hello Do we have any estimated timeframe for when this feature will be incorporated? Additionally, I am curious if there are alternative methods available within the AWS CDK codebase to address this issue, and seems this is also not supported with batch.CfnJobQueue Construct. Stuck and can't use this feature to cancel jobs in a runnable state via AWS CDK code.

Looking forward to your response and appreciate your assistance.

sandeepkumar2810 avatar May 10 '24 22:05 sandeepkumar2810

I'm implementing it now. It seems to be already supported in the CfnJobQueue.

https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_batch.CfnJobQueue.html#jobstatetimelimitactions

mazyu36 avatar May 11 '24 05:05 mazyu36

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

github-actions[bot] avatar May 17 '24 18:05 github-actions[bot]

Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one.

aws-cdk-automation avatar Jul 25 '24 21:07 aws-cdk-automation