Skip to content

Configuration

Andrei Horak edited this page Mar 23, 2019 · 1 revision
Pallets.configure do |c|
  # How many workers to process incoming jobs?
  c.concurrency = 2

  c.backend = :redis
  c.serializer = :json

  c.backend_args = { db: 1 }

  # What's the maximum allowed time to process a job?
  c.job_timeout = 1800
  # How many times should a job be retried?
  c.max_failures = 3
end

For the complete set of options, see pallets/configuration.rb

Clone this wiki locally