Workers previously polled the queue with a fixed 1s sleep between claim attempts, adding ~500ms average latency to job pickup. Now JobRepo.job_available (an asyncio.Condition) is notified on every successful enqueue, waking idle workers immediately. The poll interval remains as a timeout fallback for stop signals and breaker state changes. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| migrations.py | ||
| models.py | ||
| repository.py | ||
| schema.py | ||