mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-03 17:36:05 +00:00
The worker's SIGTERM/SIGINT handler called stopping.set(). A signal runs its handler in the main thread, which spends its time inside stopping.wait() holding the event's lock; set() then waited for that lock forever and the worker never stopped (systemd or docker stop had to kill it, leaving jobs to recovery). The handler now sets the event from a thread of its own. A standalone repro hung 3 times in 300 signals before and none after. |
||
|---|---|---|
| .. | ||
| api | ||
| management | ||
| migrations | ||
| static/operations | ||
| templates/operations | ||
| templatetags | ||
| tests | ||
| __init__.py | ||
| alerts.py | ||
| apps.py | ||
| claims.py | ||
| jobs.py | ||
| models.py | ||
| urls.py | ||
| utils.py | ||
| views.py | ||
| worker.py | ||