Skip to content

Commit

Permalink
feat: don't run Celery workers in dev mode
Browse files Browse the repository at this point in the history
Tutor's importing * from devstack.py[1] for the development settings,
and that means that we aren't using Celery workers at all in dev mode
(see [2]).  This removes them from the dev compose file, thus saving
everyboding a significat chunk of RAM.

[1] https://github.com/overhangio/tutor/blob/master/tutor/templates/apps/openedx/settings/lms/development.py#L3
[2] https://github.com/openedx/edx-platform/blob/master/lms/envs/devstack.py#L35
  • Loading branch information
arbrandes committed Apr 16, 2024
1 parent 4c723df commit 0122e69
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 1 addition & 0 deletions changelog.d/20240416_162659_arbrandes_no_workers_in_dev.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- [Feature] Don't start Celery workers in dev mode, as they're never used. (by @arbrandes) -->
6 changes: 0 additions & 6 deletions tutor/templates/dev/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@ services:
ports:
- "8001:8000"

lms-worker:
<<: *openedx-service

cms-worker:
<<: *openedx-service

# Additional service for watching theme changes
watchthemes:
<<: *openedx-service
Expand Down

0 comments on commit 0122e69

Please sign in to comment.