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