8000 Add timeout-minutes to adabot.update_cp_org_libraries action task by FoamyGuy · Pull Request #1626 · adafruit/circuitpython-org · GitHub
[go: up one dir, main page]

Skip to content

Add timeout-minutes to adabot.update_cp_org_libraries action task #1626

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 te 8000 rms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 21, 2025

Conversation

FoamyGuy
Copy link
Contributor

This would serve as sort of "relief valve" for the long stalled actions task. The configuration is documented here: https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#jobsjob_idtimeout-minutes making it give up and get cancelled sooner if it gets stalled.

The default value is 360 which matches the 6 hours that the actions run lasts when it gets stalled.

I believe with it set to 150 minutes it should get cancelled and stopped after 2.5 hours maximum instead of 6 hours.

2.5 hours was selected to account for up to 2 of the 1hour wait intervals for API rate limit. I believe that should make it so that along with the fix from adafruit/adabot#397 this should always be able to finish in under 2.5 hours under normal circumstances. The changes from this Adabot PR cap the time it will sleep for to 63 minutes, and it seems like it gets to around 60 minutes in and the negative overflow sleep logic makes it stall for the remainder of the 6 hours when that does happen, so In the same root cause scenario it could get to 60ish minutes, have the overflowed sleep, but with the new logic only sleep for 63 minutes instead, leaving around 30 minutes afterward to be able to finish within the new 2.5 hour limit.

Copy link
Member
@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@tannewt tannewt merged commit d02c1a4 into adafruit:main Apr 21, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0