-
-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
One of the very useful features of https://github.com/gocardless/que is holding "exception" jobs so they can be re-queued manually, or manually deleted. How it does this depends on the retry behaviour:
- without backoff: the status is set to "failed" and the execute_after is set to NULL (i.e. failed, never attempt to re-queue)
- with backoff: the status is not changed, but the execute_after is set to the next backoff timestamp (i.e. re-attempt)
I see a couple of options here:
- Store the job payload in the job statistics table. This means re-queueing jobs would be a matter of moving jobs back from
pgqueuer_statisticstopgqueuerto trigger a retry. - Adding first class support to the
pgqueuertable (a new status such as "failed"). This would also mean allowing executor's to customise what happens to a job after they are executed.
Thoughts? I'll experiment in my branch..
P.S. sorry I dropped off the radar before Christmas - things got very busy.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels