Permalink
Browse files

Ensure we are logging the serialized args.

  • Loading branch information...
larrylv committed May 21, 2014
1 parent d2245cb commit ce5a88d786c1d4665046aaec5bc1c9826b68aaa4
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/active_job/enqueuing.rb
@@ -30,9 +30,10 @@ def enqueue_in(interval, *args)
#
# Returns truthy if a job was scheduled.
def enqueue_at(timestamp, *args)
- timestamp = timestamp.to_f
- ActiveSupport::Notifications.instrument "enqueue_at.active_job", adapter: queue_adapter, timestamp: timestamp, job: self, args: args
- queue_adapter.queue_at self, timestamp, *Parameters.serialize(args)
+ timestamp = timestamp.to_f
+ serialized_args = Parameters.serialize(args)
+ ActiveSupport::Notifications.instrument "enqueue_at.active_job", adapter: queue_adapter, timestamp: timestamp, job: self, args: serialized_args
+ queue_adapter.queue_at self, timestamp, *serialized_args
end
end
end

0 comments on commit ce5a88d

Please sign in to comment.