Skip to content

Commit

Permalink
fix: add meilisearch as a dependency on lms-job
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Danyal-Faheem authored Jan 7, 2025
1 parent 8a09339 commit 9841287
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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)
2 changes: 1 addition & 1 deletion tutor/templates/local/docker-compose.jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 9841287

Please sign in to comment.