Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Commit

Permalink
Set the default queue in the initializer and then add the env variabl…
Browse files Browse the repository at this point in the history
…es to the deployment of the auxiliary worker
  • Loading branch information
aprilrieger committed Feb 20, 2024
1 parent 1517b77 commit 88ccf7f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion config/initializers/good_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
config.good_job.retry_on_unhandled_error = false
config.good_job.on_thread_error = ->(exception) { Raven.capture_exception(exception) }
config.good_job.execution_mode = :external
# config.good_job.queues = '*'
config.good_job.queues = '-auxiliary'
config.good_job.shutdown_timeout = 60 # seconds
config.good_job.poll_interval = 5
# config.good_job.enable_cron = true
Expand Down
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,6 @@ services:

worker:
<<: *app-worker
environment:
- GOOD_JOB_QUEUES=-auxiliary
################################################################################
## Note on commands: by default the commands don't run bundle. That is to
## reduce boot times. However, when the application is in active
Expand Down
6 changes: 3 additions & 3 deletions ops/dev-deploy.tmpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,9 @@ workerAuxiliary:
fsGroupChangePolicy: "OnRootMismatch"
extraVolumeMounts: *volMounts
extraEnvVars: *envVars
# extraDeployEnvVars:
# - name: GOOD_JOB_QUEUES
# value: "*"
extraDeployEnvVars:
- name: GOOD_JOB_QUEUES
value: "*"

extraDeploy:
- |-
Expand Down

0 comments on commit 88ccf7f

Please sign in to comment.