Menu

1 / 2

Edtech Renewal Jobs: Background Queue Workers and Timeout Checkpoints (15-Minute Limit)

DEV Community: node·MagnusNilsson2124·6 days ago
#DWOu5uVh
#devtonodejs#devto#dev#deadline#worker
Reading 0:00
15s threshold

Short answer: For an edtech renewal reminder, let a cron trigger enqueue checkpointed background queue jobs and keep every worker slice below the 15-minute timeout.

A renewal reminder for an edtech account has two clocks: the business deadline and the worker's execution window. The practical answer is to let cron enqueue a small, signed command, then have queue workers process short, checkpointed slices. Keep each lease comfortably below the 15-minute limit, persist the next cursor before acknowledging the message, and make the final send idempotent. You trade a little scheduling latency and storage for recoverability; that is usually the right trade when a missed renewal deadline is harder to explain than a few seconds of delay.

I start with the deadline, not with a timer. If a school contract expires at 17:00 local time, the reminder job should calculate a send window and a durable work plan. A cron trigger can wake the planner every five minutes, but it should not carry the whole account scan.…

Continue reading — create a free account

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