We found an issue with the logs of ActiveJobs.
When a job has an error or throws an abort or Rails Semantic Logger with still log "Enqueued Job..." despite the job not being enqueued.
class NoOpJob < ApplicationJob
before_enqueue -> { throw :abort }
end
NoOpJob.perform_later
# => false
Description of issue:
We found an issue with the logs of ActiveJobs. When a job has an error or throws an abort or Rails Semantic Logger with still log "Enqueued Job..." despite the job not being enqueued.
Please find the corresponding log messages in the Rails Repo that differentiate between three events: errors, :abort and successful enqueing.
Description of solution
We extended both methods
#enqueue
and#enqueue_at
and also added test cases for those.