Skip to content

fix: honor event_listeners_timeout in Actor.reboot#872

Merged
vdusek merged 2 commits intomasterfrom
fix/reboot-honor-event-listeners-timeout
Apr 21, 2026
Merged

fix: honor event_listeners_timeout in Actor.reboot#872
vdusek merged 2 commits intomasterfrom
fix/reboot-honor-event-listeners-timeout

Conversation

@vdusek
Copy link
Copy Markdown
Contributor

@vdusek vdusek commented Apr 20, 2026

Summary

The event_listeners_timeout parameter of Actor.reboot was previously ignored (marked # noqa: ARG002), which meant a hanging pre-reboot listener could block the reboot indefinitely. This change wraps listener execution in asyncio.wait_for so the reboot proceeds once the timeout elapses, logging a warning in that case.

Added a unit test that verifies the reboot is not blocked by a listener that exceeds the timeout.

The `event_listeners_timeout` parameter was previously ignored, allowing a
hanging pre-reboot listener to block the reboot indefinitely. Wrap listener
execution in `asyncio.wait_for` so the reboot proceeds once the timeout elapses.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vdusek vdusek added adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team. labels Apr 20, 2026
@vdusek vdusek self-assigned this Apr 20, 2026
@github-actions github-actions Bot added this to the 139th sprint - Tooling team milestone Apr 20, 2026
@github-actions github-actions Bot added the tested Temporary label used only programatically for some analytics. label Apr 20, 2026
@vdusek vdusek requested a review from Pijukatel April 20, 2026 13:52
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.59%. Comparing base (1716a2a) to head (a7f84a0).
⚠️ Report is 14 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #872      +/-   ##
==========================================
- Coverage   86.64%   86.59%   -0.06%     
==========================================
  Files          48       48              
  Lines        2920     2924       +4     
==========================================
+ Hits         2530     2532       +2     
- Misses        390      392       +2     
Flag Coverage Δ
e2e 37.82% <0.00%> (-0.06%) ⬇️
integration 59.19% <0.00%> (-0.09%) ⬇️
unit 75.34% <100.00%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@vdusek vdusek removed the request for review from Pijukatel April 20, 2026 13:53
On Python 3.10, `asyncio.wait_for` raises `asyncio.TimeoutError` (an alias for
`concurrent.futures.TimeoutError`), which is a distinct class from the builtin
`TimeoutError`. The aliasing only became true in Python 3.11. Using the
`asyncio.TimeoutError` name works on all supported Python versions.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vdusek vdusek requested a review from Pijukatel April 20, 2026 14:34
@vdusek vdusek merged commit 03e73d3 into master Apr 21, 2026
31 checks passed
@vdusek vdusek deleted the fix/reboot-honor-event-listeners-timeout branch April 21, 2026 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team. tested Temporary label used only programatically for some analytics.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants