From 984128782f49b93bcc4e2e0559defa5523b17f1b Mon Sep 17 00:00:00 2001 From: Danyal Faheem <138459282+Danyal-Faheem@users.noreply.github.com> Date: Tue, 7 Jan 2025 14:34:21 +0500 Subject: [PATCH] fix: add meilisearch as a dependency on lms-job Running the Meilisearch init job when the platform is stopped would crash as the meilisearch container wouldn't be running and the endpoint could not be hit. We add a dependency in the lms-job on meilisearch as the meilisearch init job is run inside the lms container. --- .../20250102_143119_danyal.faheem_fix_meilisearch_init_job.md | 1 + tutor/templates/local/docker-compose.jobs.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/20250102_143119_danyal.faheem_fix_meilisearch_init_job.md diff --git a/changelog.d/20250102_143119_danyal.faheem_fix_meilisearch_init_job.md b/changelog.d/20250102_143119_danyal.faheem_fix_meilisearch_init_job.md new file mode 100644 index 0000000000..7d7f827dca --- /dev/null +++ b/changelog.d/20250102_143119_danyal.faheem_fix_meilisearch_init_job.md @@ -0,0 +1 @@ +- [Bugfix] Add meilisearch as a dependency on lms-job to avoid meilisearch init job crashing when the platform is stopped. (by @Danyal-Faheem) \ No newline at end of file diff --git a/tutor/templates/local/docker-compose.jobs.yml b/tutor/templates/local/docker-compose.jobs.yml index 1e463a02b1..27f21367c8 100644 --- a/tutor/templates/local/docker-compose.jobs.yml +++ b/tutor/templates/local/docker-compose.jobs.yml @@ -29,7 +29,7 @@ services: {%- for mount in iter_mounts(MOUNTS, "openedx", "lms-job") %} - {{ mount }} {%- endfor %} - depends_on: {{ [("mysql", RUN_MYSQL), ("mongodb", RUN_MONGODB)]|list_if }} + depends_on: {{ [("mysql", RUN_MYSQL), ("mongodb", RUN_MONGODB), ("meilisearch", RUN_MEILISEARCH)]|list_if }} cms-job: image: {{ DOCKER_IMAGE_OPENEDX }}