BaseJobQueue.drainRequeue() method
Drain step three: put back whatever the budget ran out on.
Signature:
drainRequeue(): Promise<void>;
Returns:
Promise<void>
Remarks
Only jobs, and only with JobQueueOptions.drainRequeue on. Safe delivery released each job's worker key the moment the job reached the handler, so an abandoned job is checked out to nobody and nothing else would ever bring it back.
The abandoned handler is still running as this pushes its job back, so the job may both finish and be delivered again — the at-least-once duplicate a lease expiry would have produced anyway.
Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.