fix: service "xqueue-job" depends on undefined service mysql: invalid compose project (#24)

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

* fix spelling error

---------

Co-authored-by: Ravi Khetani <r.khetani@institute.global>
This commit is contained in:
ravikhetani 2023-11-14 23:01:33 +00:00 committed by GitHub
parent c88592235f
commit c93d2a3e35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -4,5 +4,4 @@ xqueue-job:
- ../plugins/xqueue/apps/settings/tutor.py:/openedx/xqueue/xqueue/tutor.py:ro - ../plugins/xqueue/apps/settings/tutor.py:/openedx/xqueue/xqueue/tutor.py:ro
environment: environment:
DJANGO_SETTINGS_MODULE: xqueue.tutor DJANGO_SETTINGS_MODULE: xqueue.tutor
depends_on: depends_on: {{ [("mysql", RUN_MYSQL)]|list_if }}
- mysql