pg-boss icon indicating copy to clipboard operation
pg-boss copied to clipboard

A way for onComplete job to have retries

Open craigdub opened this issue 2 years ago • 3 comments

I am trying to utilize onComplete feature but I am not finding a way to have retries on the state__completed entries.

I am concerned in the event of network errors or server restarts on deploy this will fail the completed jobs and then they will never get executed.

Is there a way to do this?

craigdub avatar Jan 10 '23 17:01 craigdub

There's no way to set retries currently for completion jobs. :disappointed:

timgit avatar Jan 13 '23 02:01 timgit

Thanks for getting back! Curious, Is this intended by design or it just hasn't been implemented?

craigdub avatar Jan 13 '23 18:01 craigdub

It's never been implemented

timgit avatar Jan 13 '23 20:01 timgit

Completion jobs were replaced with dead letter queues in v10, which would support retries like any other queue.

timgit avatar Aug 17 '24 21:08 timgit