Skip to content

fix: bot wakes worker after job insert#22

Merged
abrichr merged 1 commit intomainfrom
fix/worker-wake-up
Mar 19, 2026
Merged

fix: bot wakes worker after job insert#22
abrichr merged 1 commit intomainfrom
fix/worker-wake-up

Conversation

@abrichr
Copy link
Member

@abrichr abrichr commented Mar 19, 2026

Summary

  • Bot pings worker /health endpoint after every job insert (triggers Fly.io auto-start)
  • Increases idle shutdown from 5 to 15 minutes
  • Fixes jobs stuck in 'queued' when worker has self-terminated

Root cause

Worker exits after 5 min idle. Fly.io auto_start only triggers on HTTP requests. Bot never pinged worker. Jobs sat indefinitely.

🤖 Generated with Claude Code

The Telegram bot now pings the worker's /health endpoint after every
insertJob call, triggering Fly.io auto-start if the machine is stopped.
Also increases worker idle shutdown from 5 to 15 minutes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@abrichr abrichr merged commit c6b2e65 into main Mar 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant