Skip to content
Snippets Groups Projects
Unverified Commit 61273fc8 authored by Sébastien Gaya's avatar Sébastien Gaya Committed by GitHub
Browse files

Queue-based worker (#1911)

* test

* test

* worker

* queue by procfile
parent 3aaef8c9
No related branches found
No related tags found
No related merge requests found
web: bundle exec puma -C config/puma.rb
worker: bundle exec good_job start
worker: bundle exec good_job start --queues="default"
miceworker: bundle exec good_job start --queues="mice"
elephantworker: bundle exec good_job start --queues="elephant"
postdeploy: rails db:migrate && rails db:seed
......@@ -4,7 +4,7 @@ Rails.application.configure do
# config.good_job.retry_on_unhandled_error = false
# config.good_job.on_thread_error = -> (exception) { Rails.error.report(exception) }
# config.good_job.execution_mode = :async
config.good_job.queues = 'default,mice:1; default,mice,elephant:1; elephant:1'
# config.good_job.queues = 'default,mice:1; default,mice,elephant:1; elephant:1'
# config.good_job.max_threads = 5
# config.good_job.poll_interval = 30 # seconds
# config.good_job.shutdown_timeout = 25 # seconds
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment