Sha256: 242d1a3fef562907b933752b5a2b8fcda7379a7d2ddb714492ae7d7435775186

Contents?: true

Size: 721 Bytes

Versions: 16

Compression:

Stored size: 721 Bytes

Contents

module ActiveJob
  module QueueAdapters
    # == Workhorse adapter for Active Job
    #
    # Workhorse is a multi-threaded job backend with database queuing for ruby.
    # Jobs are persisted in the database using ActiveRecird.
    # Read more about Workhorse {here}[https://github.com/sitrox/activejob].
    #
    # To use Workhorse, set the queue_adapter config to +:workhorse+.
    #
    #   Rails.application.config.active_job.queue_adapter = :workhorse
    class WorkhorseAdapter
      def enqueue(job) #:nodoc:
        Workhorse.enqueue_active_job(job)
      end

      def enqueue_at(job, timestamp = Time.now) #:nodoc:
        Workhorse.enqueue_active_job(job, perform_at: timestamp)
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
workhorse-1.2.15 lib/active_job/queue_adapters/workhorse_adapter.rb
workhorse-1.2.14 lib/active_job/queue_adapters/workhorse_adapter.rb
workhorse-1.2.13 lib/active_job/queue_adapters/workhorse_adapter.rb
workhorse-1.2.12 lib/active_job/queue_adapters/workhorse_adapter.rb
workhorse-1.2.11 lib/active_job/queue_adapters/workhorse_adapter.rb
workhorse-1.2.10 lib/active_job/queue_adapters/workhorse_adapter.rb
workhorse-1.2.9 lib/active_job/queue_adapters/workhorse_adapter.rb
workhorse-1.2.8 lib/active_job/queue_adapters/workhorse_adapter.rb
workhorse-1.2.7 lib/active_job/queue_adapters/workhorse_adapter.rb
workhorse-1.2.6 lib/active_job/queue_adapters/workhorse_adapter.rb
workhorse-1.2.5 lib/active_job/queue_adapters/workhorse_adapter.rb
workhorse-1.2.4 lib/active_job/queue_adapters/workhorse_adapter.rb
workhorse-1.2.3 lib/active_job/queue_adapters/workhorse_adapter.rb
workhorse-1.2.2 lib/active_job/queue_adapters/workhorse_adapter.rb
workhorse-1.2.1 lib/active_job/queue_adapters/workhorse_adapter.rb
workhorse-1.2.0 lib/active_job/queue_adapters/workhorse_adapter.rb