For Node. js delayed background task scheduling, publish the task with an explicit delay, then make the consumer idempotent before adding retries; that is the safest shape for draining a rate-limited media worker pool. The delay controls eligibility.
Source: [Dev.to](https://dev.to/pantaleonshaw8478/nodejs-delayed-background-task-scheduling-for-rate-limited-media-workers-1olh)