Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #54 from larrylv/log-serialized-args
Ensure we are logging the serialized args.
  • Loading branch information
dhh committed May 21, 2014
2 parents d2245cb + ce5a88d commit 4ad28b1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/active_job/enqueuing.rb
Expand Up @@ -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 4ad28b1

Please sign in to comment.