Keep polling as worker liveness
Status: Ready
Article ID: 059
Truth label: Current
Audience: Fleet operator
Reader outcome: Explain why successful task polling also refreshes worker liveness between explicit heartbeats.
Related articles: 041, 051, 092
Target week: 24
Last verified: 2026-09-13
Technical reviewer: Codex source audit
Editorial reviewer: Codex editorial audit
Treat useful traffic as life
An idle worker repeatedly polls GET /tasks/next. A credentialed successful
poll proves it can reach and authenticate to Central, so Central refreshes its
heartbeat state. The worker need not appear offline while it is actively
asking for work.
Keep lease liveness separate
Worker heartbeat describes the process registration. A task lease describes ownership of one attempt. An idle poll cannot renew a task lease, and a lease renewal does not make unrelated workers healthy.
Diagnose an offline worker
Check the last poll, heartbeat timestamp, authentication status, Central URL, network reachability, process logs, and offline timeout. A zero-work queue is not itself a liveness failure.
Test idle behavior
Run a registered worker with no tasks longer than the offline threshold. Confirm its authenticated polls keep it online, then stop the process and confirm it eventually becomes offline.
Current limits
Polling proves application reachability, not engine health, disk space, credential-store access, or repository reachability. A worker can be online and still fail every assigned task.
Next lesson
Continue with Classify retryable and rejected outbox results.
Derivative map
- Weekly package: WEEK-24
- Long video: VIDEO-W24-LONG
- Shorts: SHORT-W24-PROBLEM, SHORT-W24-MECHANISM, SHORT-W24-WARNING
- Email: EMAIL-W24
- LinkedIn: LI-W24-A, LI-W24-B
- X: X-W24-A, X-W24-B
- Visual: VISUAL-W24
Review record
- Poll authentication, heartbeat refresh, offline behavior, and lease distinction checked against current source.
- Engine, storage, credential, and path health limits reviewed.
- Idle test separates no work from no liveness.
- Internal links and repository voice reviewed.
Review completed: 2026-08-27
Re-audited against the running product: 2026-09-13