#Oban Worker with no retries

5 messages · Page 1 of 1 (latest)

daring saddle
#

have you tried to set max_attempt to 1?

gilded peak
#

Yeah, but that will still retry the job 1 time, but I figured out I can just cancel the job to stop the retries

#
{:cancel, reason} — cancel executing the job and stop retrying it. An error is recorded using the provided reason. The job is marked as cancelled.
granite coral
#

Setting it to 1 is one attempt, no retries

toxic cypress
#

why? Isn't the whole point of Oban to ensure that a task is completed. if you don't care - why use oban?