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

Worker client fix #1750

Merged
merged 7 commits into from
Nov 19, 2019
Merged

Worker client fix #1750

merged 7 commits into from
Nov 19, 2019

Conversation

cicdw
Copy link
Member

@cicdw cicdw commented Nov 18, 2019

Thanks for contributing to Prefect!

Please describe your work and make sure your PR:

  • adds new tests (if appropriate)
  • updates CHANGELOG.md (if appropriate)
  • updates docstrings for any new functions or function arguments, including docs/outline.toml for API reference docs (if appropriate)

Note that your PR will not be reviewed unless all three boxes are checked.

What does this PR change?

This PR refactors how we manage background heartbeats from task / flow runs.

Why is this PR important?

It turns out that the old implementation of heartbeating led to non-deterministic deadlocks when using dask worker_clients. Ultimately this boiled down to some complicated interaction between dask / requests / our Timer implementation. These deadlock situations would ultimately show themselves as Zombie Tasks in Prefect Cloud. The new implementation uses a ThreadPoolExecutor to manage the thread and its associated state, which empirically has resolved the issue!

@codecov
Copy link

codecov bot commented Nov 18, 2019

Codecov Report

Merging #1750 into master will increase coverage by <.01%.
The diff coverage is 100%.

@cicdw cicdw merged commit 167f8af into master Nov 19, 2019
@cicdw cicdw deleted the worker-client-fix branch November 19, 2019 03:31
zanieb pushed a commit that referenced this pull request May 12, 2022
…-ui/typescript-4.6.4

Bump typescript from 4.6.3 to 4.6.4 in /orion-ui
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.

None yet

3 participants