timgit / pg-boss

Queueing jobs in Postgres from Node.js like a boss
MIT License
2.15k stars 160 forks source link

A way for onComplete job to have retries #359

Closed craigdub closed 3 months ago

craigdub commented 1 year ago

I am trying to utilize onComplete feature but I am not finding a way to have retries on the statecompleted__ 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?

timgit commented 1 year ago

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

craigdub commented 1 year ago

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

timgit commented 1 year ago

It's never been implemented

timgit commented 3 months ago

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