Sha256: cb9ade618610efb2e7d358a364e31e97949268927b95e07ababc8903f9c3da72

Contents?: true

Size: 369 Bytes

Versions: 5

Compression:

Stored size: 369 Bytes

Contents

require 'delayed_job'

# Run during initialization
Delayed::Job.destroy_failed_jobs = false
silence_warnings do
  Delayed::Job.const_set("MAX_ATTEMPTS", 3)
  Delayed::Job.const_set("MAX_RUN_TIME", 5.minutes)
end

class Delayed::Job
  before_create :set_site_id
  private
    def set_site_id
      self[:site_id] = current_site[:id]
    end
end

Zena.use Bricks::Worker

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
zena-1.2.4 bricks/worker/zena/init.rb
zena-1.2.3 bricks/worker/zena/init.rb
zena-1.2.2 bricks/worker/zena/init.rb
zena-1.2.1 bricks/worker/zena/init.rb
zena-1.2.0 bricks/worker/zena/init.rb