Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix(jobs): execute close only once #3036

Merged
merged 1 commit into from
Nov 22, 2024
Merged

fix(jobs): execute close only once #3036

merged 1 commit into from
Nov 22, 2024

Conversation

TBonnin
Copy link
Collaborator

@TBonnin TBonnin commented Nov 21, 2024

Notice while investigating today's mini incident that the close function could be executed multiple times if several unhandledRejections which create some sort of infinite loop

It is not fixing the root cause of the incident, still investigating

@TBonnin TBonnin requested a review from a team November 21, 2024 22:34
}
return result;
Copy link
Collaborator Author

@TBonnin TBonnin Nov 21, 2024

Choose a reason for hiding this comment

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

once now handles any sort of return type for fn and memoize the result

@TBonnin TBonnin force-pushed the tbonnin/jobs-close-once branch from 0a7f09a to 0c4be5f Compare November 22, 2024 12:58
@TBonnin TBonnin enabled auto-merge (squash) November 22, 2024 12:58
@TBonnin TBonnin merged commit 5852da5 into master Nov 22, 2024
19 checks passed
@TBonnin TBonnin deleted the tbonnin/jobs-close-once branch November 22, 2024 13:08
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants