You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When there is an exception that is rescued by retry_on or discard_on, it is not consistently available to the GoodJob adapter as an argument, and does not always appear in the good_jobs.error column. This can happen if there are additional *_perform hooks that intercept the return value.
When there is an exception that is rescued by
retry_on
ordiscard_on
, it is not consistently available to the GoodJob adapter as an argument, and does not always appear in thegood_jobs.error
column. This can happen if there are additional*_perform
hooks that intercept the return value.It seems like the only reliable way to access
retry_on
ordiscard_on
(without monkey-patching them) is to use ActiveSupport::Instrumentation to hook into the events: https://guides.rubyonrails.org/active_support_instrumentation.html#retry-stopped-active-jobUnfortunately, this means having to pass those objects up through a global (like ActiveSupport::Current) and retrieved in the job processor.
The text was updated successfully, but these errors were encountered: