Skip to content
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

Make flow/task engine release slots after a timeout #14787

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

bunchesofdonald
Copy link
Contributor

Because the Flow and Task engines cancel the running flow/task when they hit a timeout the underlying concurrency manager is not able to actually release the acquired slots. This adds a context that allows for tracking when this happens and then releasing the slots when the context exits.

Related to https://github.com/PrefectHQ/nebula/issues/8177

Copy link
Collaborator

@chrisguidry chrisguidry left a comment

Choose a reason for hiding this comment

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

Outstanding, love the tests!

Copy link

codspeed-hq bot commented Jul 29, 2024

CodSpeed Performance Report

Merging #14787 will not alter performance

Comparing cloud-issue-8177 (70e76c4) with main (fede95b)

Summary

✅ 5 untouched benchmarks

@bunchesofdonald bunchesofdonald merged commit ff92adc into main Jul 29, 2024
33 checks passed
@bunchesofdonald bunchesofdonald deleted the cloud-issue-8177 branch July 29, 2024 19:52
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