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 |
||
---|---|---|
.. | ||
abort_before_enqueue_job.rb | ||
application_job.rb | ||
callback_job.rb | ||
disable_log_job.rb | ||
gid_job.rb | ||
hello_job.rb | ||
inherited_job.rb | ||
kwargs_job.rb | ||
logging_job.rb | ||
multiple_kwargs_job.rb | ||
nested_job.rb | ||
overridden_logging_job.rb | ||
prefixed_job.rb | ||
provider_jid_job.rb | ||
queue_adapter_job.rb | ||
queue_as_job.rb | ||
raising_job.rb | ||
rescue_job.rb | ||
retry_job.rb | ||
thread_job.rb | ||
timezone_dependent_job.rb | ||
translated_hello_job.rb |