mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
d35cf4c05d
- ### Problem Given the below example the test adapter will retry the job indefinitely: ```ruby class BuggyJob < ActiveJob::Base retry_on(Exception, attempts: 2) def perform raise "error" end end BuggyJob.perform_later perform_enqueued_jobs ``` The problem is that when the job get retried, the `exception_executions` variable is not serialized/deserialized, resulting in ActiveJob to not be able to determine how many time this job was retried. The solution in this PR is to deserialize the whole job in the test adapter, and reserialize it before retrying. Fix #38391 |
||
---|---|---|
.. | ||
active_job | ||
rails/generators/job | ||
active_job.rb |