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

Commit

Permalink
export didn't reliably set ENV var
Browse files Browse the repository at this point in the history
  • Loading branch information
bkiahstroud committed Feb 22, 2024
1 parent 9ffd497 commit c3e3028
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bin/worker
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c3e3028

Please sign in to comment.