1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

ActiveJob - log enqueued message only after the job was successfully enqueued

This commit is contained in:
Cristian Bica 2015-05-11 21:19:46 +03:00
parent 40ff5087ec
commit 30b640045f

View file

@ -25,7 +25,7 @@ module ActiveJob
end
end
before_enqueue do |job|
after_enqueue do |job|
if job.scheduled_at
ActiveSupport::Notifications.instrument "enqueue_at.active_job",
adapter: job.class.queue_adapter, job: job