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

Restart worker if it's unrecognized by scheduler #6505

Merged
merged 1 commit into from
Jun 7, 2022

Conversation

gjoseph92
Copy link
Collaborator

Progress towards #6387.

Also closes #6494, though #6504 fixes it too.

cc @jrbourbeau @fjetter @hendrikmakait

  • Tests added / passed
  • Passes pre-commit run --all-files

@github-actions
Copy link
Contributor

github-actions bot commented Jun 3, 2022

Unit Test Results

       15 files  ±0         15 suites  ±0   6h 21m 5s ⏱️ - 10m 25s
  2 837 tests +1    2 755 ✔️ +1    81 💤 ±0  0  - 1  1 🔥 +1 
21 025 runs  +9  20 077 ✔️ +6  947 💤 +3  0  - 1  1 🔥 +1 

For more details on these errors, see this check.

Results for commit 14efd3d. ± Comparison against base commit 6d85a85.

@gjoseph92
Copy link
Collaborator Author

@gjoseph92 gjoseph92 self-assigned this Jun 6, 2022
Copy link
Member

@hendrikmakait hendrikmakait left a comment

Choose a reason for hiding this comment

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

LGTM, feel free to ignore the nit.

Worker=Nanny,
worker_kwargs={"heartbeat_interval": "1ms"},
)
async def test_heartbeat_missing_restarts(c, s: Scheduler, n: Nanny):
Copy link
Member

Choose a reason for hiding this comment

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

nit: Emphasize that we test for the status missing, not a heartbeat that went missing.

Suggested change
async def test_heartbeat_missing_restarts(c, s: Scheduler, n: Nanny):
async def test_heartbeat_status_missing_restarts(c, s: Scheduler, n: Nanny):

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.

client.restart() may cause workers to shut down instead of restarting
4 participants