mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
0d3aec4969
- ### Problem ActiveJob will always log "Enqueued MyJob (Job ID) ..." even if the job doesn't get enqueued through the adapter. Same problem happens when performing a Job, "Performed MyJob (Job ID) ..." will be logged even when job wasn't performed at all. This situation can happen either if the callback chain is terminated (before_enqueue throwing an `abort`) or if an exception is raised. ### Solution Check if the callback chain is aborted/exception is raised, and log accordingly. |
||
---|---|---|
.. | ||
active_job | ||
rails/generators/job | ||
active_job.rb |