I'm using bullmq to send webhooks events. Jobs are scheduled and an automatic retry is in place. Let's say I want to re-execute some tasks which already successfully completed and I have the ids of the elements in the queue I want to reschedule, is it possible to set those task as "to repeat" manually by moving them in the waiting queue somehow with redis?
Bullmq retry completed jobs manually
That's what the retry method is for, no?
(method) Job<any, any, string>.retry(state?: FinishedStatus): Promise
Attempts to retry the job. Only a job that has failed or completed can be retried.
@param state — completed / failed
@returns If resolved and return code is 1, then the queue emits a waiting event otherwise the operation was not a success and throw the corresponding error. If the promise rejects, it indicates that the script failed to execute
© 2022 - 2025 — McMap. All rights reserved.