-
I'm integrating River as part of a bigger task system, and it's been great so far. But there's a particular missing feature that would be nice to have. _, err = riverClient.Insert(ctx, RetryOnceJobArgs{}, &river.InsertOpts{
// use a max attempts of 5 for this one job even though the job has a
// default limit of 1:
MaxAttempts: 5,
}) On the other hand, the job retry delays can be set at the client and worker level (https://riverqueue.com/docs/job-retries#retry-delays), but not at the job level. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @rhodeon, you can customize the retry policy either on a per worker type basis or globally. You can use whatever logic you want for that, including basing it on job args that you can control at insertion time. Let me know if you have a specific use case you think isn’t handled by this! |
Beta Was this translation helpful? Give feedback.
Hi @rhodeon, you can customize the retry policy either on a per worker type basis or globally. You can use whatever logic you want for that, including basing it on job args that you can control at insertion time.
Let me know if you have a specific use case you think isn’t handled by this!