Skip to content

Commit

Permalink
fix: service "xqueue-job" depends on undefined service mysql: invalid…
Browse files Browse the repository at this point in the history
… compose project (#24)

* fix: docker compose error, dependency sql missing, when running with RUN_MYSQL=false

* fix spelling error

---------

Co-authored-by: Ravi Khetani <[email protected]>
  • Loading branch information
ravikhetani and Ravi Khetani committed Nov 14, 2023
1 parent c885922 commit c93d2a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.d/20231113_135404_r.khetani.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- [Bugfix] Fix "Error: service "xqueue-job" depends on undefined service mysql: invalid compose project" - add conditional statement to check whether the mysql service is enabled or if the user is using an external mysql instance. (by @ravikhetani)
3 changes: 1 addition & 2 deletions tutorxqueue/patches/local-docker-compose-jobs-services
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ xqueue-job:
- ../plugins/xqueue/apps/settings/tutor.py:/openedx/xqueue/xqueue/tutor.py:ro
environment:
DJANGO_SETTINGS_MODULE: xqueue.tutor
depends_on:
- mysql
depends_on: {{ [("mysql", RUN_MYSQL)]|list_if }}

0 comments on commit c93d2a3

Please sign in to comment.