From 88ccf7f2506ec2a301498d5f6cabe44d22e64546 Mon Sep 17 00:00:00 2001 From: April Rieger Date: Tue, 20 Feb 2024 02:15:51 -0800 Subject: [PATCH] Set the default queue in the initializer and then add the env variables to the deployment of the auxiliary worker --- config/initializers/good_job.rb | 2 +- docker-compose.yml | 2 -- ops/dev-deploy.tmpl.yaml | 6 +++--- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/config/initializers/good_job.rb b/config/initializers/good_job.rb index bc999be3..ea78379a 100644 --- a/config/initializers/good_job.rb +++ b/config/initializers/good_job.rb @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index 696e82ab..28dea7ab 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 diff --git a/ops/dev-deploy.tmpl.yaml b/ops/dev-deploy.tmpl.yaml index bf607a13..3e32c094 100644 --- a/ops/dev-deploy.tmpl.yaml +++ b/ops/dev-deploy.tmpl.yaml @@ -245,9 +245,9 @@ workerAuxiliary: fsGroupChangePolicy: "OnRootMismatch" extraVolumeMounts: *volMounts extraEnvVars: *envVars - # extraDeployEnvVars: - # - name: GOOD_JOB_QUEUES - # value: "*" + extraDeployEnvVars: + - name: GOOD_JOB_QUEUES + value: "*" extraDeploy: - |-