samsondav / rihanna

Rihanna is a high performance postgres-backed job queue for Elixir
MIT License
439 stars 47 forks source link

Jobs that unexpectedly raise/exit are never retried #95

Open jonnystoten opened 4 years ago

jonnystoten commented 4 years ago

If a module-based job returns :error or {:error, reason}, retry_at is called on the module to determine whether to retry. However, if the job raises or exits because of an error, retry_at is not called on the module so the job is never retried.

I'm happy to take a look at a PR for this!

samsondav commented 4 years ago

@jonnystoten Hi and thanks for the PR!

I've left a comment there. Let's move discussion onto the code :+1: