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:
parent
40ff5087ec
commit
30b640045f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue