Flowdock
method

enqueue

Importance_0
v5.2.3 - Show latest stable - 0 notes - Class: QuAdapter
enqueue(job, *args) public

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/qu_adapter.rb, line 21
      def enqueue(job, *args) #:nodoc:
        qu_job = Qu::Payload.new(klass: JobWrapper, args: [job.serialize]).tap do |payload|
          payload.instance_variable_set(:@queue, job.queue_name)
        end.push

        # qu_job can be nil depending on the configured backend
        job.provider_job_id = qu_job.id unless qu_job.nil?
        qu_job
      end
Register or log in to add new notes.