Skip to content

Commit

Permalink
🎁 Add conditional to run correct command for worker
Browse files Browse the repository at this point in the history
This commit adds a conditional to run the correct command for sidekiq or good_job, when running docker compose up.
  • Loading branch information
ShanaLMoore committed Sep 28, 2023
1 parent b452363 commit 5108af1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,15 @@ services:
- ghcr.io/samvera/hyku/base:latest
- ghcr.io/samvera/hyku:latest
- ghcr.io/samvera/hyku/worker:latest
command: bundle exec sidekiq
command:
- /bin/sh
- -c
- >
if [ "$$HYRAX_ACTIVE_JOB_QUEUE" == "good_job" ]; then
exec bundle exec good_job start
else
exec bundle exec sidekiq
fi
depends_on:
check_volumes:
condition: service_completed_successfully
Expand Down

0 comments on commit 5108af1

Please sign in to comment.