From c3e302863a6e6e22aa42448a02ccaeb416ca0e9d Mon Sep 17 00:00:00 2001 From: Benjamin Kiah Stroud <32469930+bkiahstroud@users.noreply.github.com> Date: Wed, 21 Feb 2024 17:24:27 -0800 Subject: [PATCH] export didn't reliably set ENV var --- bin/worker | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bin/worker b/bin/worker index d57cf13d..e605849a 100755 --- a/bin/worker +++ b/bin/worker @@ -11,10 +11,8 @@ end if ENV['AUX_WORKER'] # Run all queues (including :auxiliary) - %x{export GOOD_JOB_QUEUES='*'} - exec "echo $DATABASE_URL && bundle exec good_job" + exec "echo $DATABASE_URL && GOOD_JOB_QUEUES='*' bundle exec good_job" else # Run all queues (excluding :auxiliary) - %x{export GOOD_JOB_QUEUES='-auxiliary'} - exec "echo $DATABASE_URL && bundle exec good_job" + exec "echo $DATABASE_URL && GOOD_JOB_QUEUES='-auxiliary' bundle exec good_job" end