-
Notifications
You must be signed in to change notification settings - Fork 9.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[36384] Add job state time limit actions to batch queue #36658
[36384] Add job state time limit actions to batch queue #36658
Conversation
Thank you for your contribution! 🚀 Please note that the Remove any changes to the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for opening this PR. Was planning to get to that this week... appreciate you stepping up. Here's some requested changes:
Also please include a changelog entry
if !plan.JobStateTimeLimitAction.IsNull() && !plan.JobStateTimeLimitAction.Equal(state.JobStateTimeLimitAction) { | ||
flex.Expand(ctx, plan.JobStateTimeLimitAction, &input.JobStateTimeLimitActions) | ||
update = true | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can reason
be updated?
Co-authored-by: drewmullen <[email protected]>
@jchorl looks like I gave you the validation functions using the old framework and this resource is on the new framework… I can send some examples tomorrow if you have trouble |
You're too fast, just figuring it out locally. Will push updates soon. |
I saw the notification and immediately felt bad for giving bad code lol |
I think I addressed all feedback. Unfortunately I can't test updating the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks really good. Seems like the CI is complaining about the test config name... odd that it hasnt complained about this until now... i believe the solution would be to add a _
, aka ..Config_Base
... might be b
(lower case)... i cant remember
Co-authored-by: drewmullen <[email protected]>
@jchorl update - my company may be getting acquired... might still do it but if someone else wants to jump in, feel free to! |
Please feel free to take it over - I haven't had a chance to figure out terraform tests, especially with all the resources they configure in your AWS acct. I do think there is a lingering issue in this PR with state getting out of sync - i.e. if you |
made a PR #38784 to pick this up. do you happen to remember the configuration with which you ran into the out-of-sync state issue? seems like when i make changes to the on a related-ish note, hopefully someone will be able to take a look at the PR soon, since given the acquisition going on at my company, it's unclear how much longer i'll have access to AWS account here :.) |
I just built my branch and tf-applied off that provider. Got a bunch of:
I'm not sure what this error means/why it would occur. This was off just a normal Genuine thanks for picking this up. |
yup, tried it with
i don't seem to get that error message. and no problem! we ended up setting up a cronjob to pick up on jobs that get stuck on RUNNABLE and i'm just glad AWS got around to support this natively on their end. |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
A new option has been added to batch job queues: https://aws.amazon.com/about-aws/whats-new/2024/03/aws-batch-alerts-detect-jobs-runnable-state/
This PR just adds support for the new API fields to the batch queue terraform resource.
Relations
Closes #36384
References
API reference: https://docs.aws.amazon.com/batch/latest/APIReference/API_JobStateTimeLimitAction.html
Output from Acceptance Testing
I didn't run acceptance tests to avoid dangling resources in my account.
I did however use this to update job queues and it worked.