Commit 433df9b
Fix test_task_announcements flake with immediate heartbeat (#216)
Workers now send their first heartbeat immediately on startup instead of
waiting for the first interval. This fixes a race condition where
`task_workers()` could be called before any heartbeat was sent on
heavily
loaded CI machines.
Changes:
- Reorder `_heartbeat()` to send heartbeat before sleeping
- Update `test_worker_publishes_depth_gauges` to allow multiple
heartbeats
- Clean up temp worker heartbeat data in `key_leak_checker` fixture
Flake:
https://github.com/chrisguidry/docket/actions/runs/20075820763/job/57589737809
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent 2507be2 commit 433df9b
File tree
3 files changed
+10
-3
lines changed- src/docket
- tests
3 files changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
915 | 915 | | |
916 | 916 | | |
917 | 917 | | |
918 | | - | |
919 | 918 | | |
920 | 919 | | |
921 | 920 | | |
| |||
974 | 973 | | |
975 | 974 | | |
976 | 975 | | |
| 976 | + | |
| 977 | + | |
977 | 978 | | |
978 | 979 | | |
979 | 980 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
237 | 243 | | |
238 | 244 | | |
239 | 245 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
766 | 766 | | |
767 | 767 | | |
768 | 768 | | |
769 | | - | |
770 | | - | |
| 769 | + | |
| 770 | + | |
771 | 771 | | |
772 | 772 | | |
773 | 773 | | |
| |||
0 commit comments