method

job_to_hash

Importance_0
v7.1.3.4 - Show latest stable - 0 notes - Class: TestAdapter
job_to_hash(job, extras = {}) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activejob/lib/active_job/queue_adapters/test_adapter.rb, line 39
        def job_to_hash(job, extras = {})
          job.serialize.tap do |job_data|
            job_data[:job] = job.class
            job_data[:args] = job_data.fetch("arguments")
            job_data[:queue] = job_data.fetch("queue_name")
            job_data[:priority] = job_data.fetch("priority")
          end.merge(extras)
        end
Register or log in to add new notes.