diff options
Diffstat (limited to 'lib/active_job/queue_adapters/inline_adapter.rb')
-rw-r--r-- | lib/active_job/queue_adapters/inline_adapter.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/active_job/queue_adapters/inline_adapter.rb b/lib/active_job/queue_adapters/inline_adapter.rb index 4f703a6c3f..8f790943c4 100644 --- a/lib/active_job/queue_adapters/inline_adapter.rb +++ b/lib/active_job/queue_adapters/inline_adapter.rb @@ -3,7 +3,7 @@ module ActiveJob class InlineAdapter class << self def queue(job, *args) - job.new.perform *Parameters.deserialize(args) + job.new.perform_with_deserialization *args end def queue_at(job, timestamp, *args) @@ -11,7 +11,7 @@ module ActiveJob begin interval = Time.now.to_f - timestamp sleep(interval) if interval > 0 - job.new.perform *Parameters.deserialize(args) + job.new.perform_with_deserialization *args rescue => e ActiveJob::Base.logger.info "Error performing #{job}: #{e.message}" end |