Sha256: 6f968da6792d1ba08bf07755f77d9901c5510809053c56a0a1e8070b5b63ac18

Contents?: true

Size: 270 Bytes

Versions: 2

Compression:

Stored size: 270 Bytes

Contents

# frozen_string_literal: true

module DelayedJobWorkerPool
  module Worker
    extend self

    def run(options = {})
      dj_worker = Delayed::Worker.new(options)
      dj_worker.name = options[:name] if options.include?(:name)
      dj_worker.start
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
delayed_job_worker_pool-1.0.0 lib/delayed_job_worker_pool/worker.rb
delayed_job_worker_pool-0.3.0 lib/delayed_job_worker_pool/worker.rb