Menu

Node.js Background Queue Worker Timeout: Checkpoints for Long-Running Cron Jobs
📰

Node.js Background Queue Worker Timeout: Checkpoints for Long-Running Cron Jobs

DEV Community: node·daxharrington5274·about 1 hour ago
#rGFEruzw
#devtonodejs#devto#dev#delivery#queue
Reading 0:00
15s threshold

Short answer: let the cron trigger enqueue a bounded Node.js task, checkpoint each shipment webhook, and let a worker retry from that checkpoint. Do not make the scheduler own a long-running delivery loop.

In a logistics system, a nightly carrier scan can find 80,000 shipment updates. A 15-minute execution limit is not a small inconvenience at that volume. It is a signal that scheduling and delivery have different lifetimes. The scheduler should create durable work; a queue worker should own timeout handling, retries, and idempotency.

I care about the first successful call and the first useful failure message. Configuration that exists only to connect two control planes is a smell.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.