Sha256: fa14c2664911c3f8cb7cabe730a6f4954f3ccdf3321f9fffe7c0b2045c5a2275

Contents?: true

Size: 299 Bytes

Versions: 2

Compression:

Stored size: 299 Bytes

Contents

module ActiveJob
  module QueueAdapters
    class TestAdapter
      def job_to_hash(job, extras = {})
        {
          id: job.job_id,
          job: job.class,
          args: job.serialize.fetch('arguments'),
          queue: job.queue_name
        }.merge!(extras)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activejob-cancel-0.3.1 lib/active_job/cancel/queue_adapters/test_adapter/rails.rb
activejob-cancel-0.3.0 lib/active_job/cancel/queue_adapters/test_adapter/rails_5.rb