Repository navigation
fix: supervise fatal heartbeat storage errors - #348
Conversation
pilipilisbot
left a comment
There was a problem hiding this comment.
Aprovo el canvi. Un error fatal del heartbeat entra al mateix canal de fallades que els workers, activa l’aturada global i fa fallar el procés perquè systemd el pugui reiniciar. He comprovat que es manté el reintent per contenció SQLite i que, si cau el worker, ja no s’intenta escriure un heartbeat abans de registrar-ne l’excepció. No hi ha canvis d’esquema ni de configuració; el reinici no resol una avaria persistent del disc.
Validat a 3eadccc: 4 proves focalitzades i 714 proves de la suite completa passades localment. CI de Python 3.11, Python 3.12 i dashboard en verd.
|
Neteja post-merge completada: la PR s’ha integrat a |
Summary
Rationale
disk I/O erroris not SQLite lock contention and must remain fatal. Previously, an error from the heartbeat daemon was reported by Sentry, butExecutorPool.run()did not observe it, so the worker pool could continue without health heartbeats. The new supervision path fails closed and lets the service manager restart the executor.This does not hide or retry physical storage failures. Repeated I/O errors still require an operator to inspect the filesystem/device.
Tests
pytest -q tests/test_executor.py -k 'heartbeat or run_raises_when_worker_dies_unexpectedly'— 4 passedpytest -q— 714 passedRefs #345