Skip to content

Commit

Permalink
fix: do not depend on multique enabled for extra params
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 committed Sep 11, 2024
1 parent d6d9be0 commit 7d80963
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tutorcelery/patches/k8s-override
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{% if CELERY_MULTIQUEUE_ENABLED %}
{% for service in ["lms", "cms"] %}
{% set config = iter_celery_workers_config().get(service).get("default") %}
---
Expand All @@ -18,9 +17,12 @@ spec:
- "--loglevel=info"
- "--hostname=edx.{{service}}.core.default.%%h"
- "--max-tasks-per-child=100"
{% if CELERY_MULTIQUEUE_ENABLED %}
- "--queues=edx.{{service}}.core.default"
{% else %}
"--exclude-queues=edx.lms.core.default"
{% endif %}
{% for setting, value in config.get("extra_params", {}).items() %}
- "--{{setting}}={{value}}"
{% endfor %}
{% endfor %}
{% endif %}

0 comments on commit 7d80963

Please sign in to comment.