Skip to content

Commit

Permalink
fix: allow to add default parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 committed Sep 11, 2024
1 parent 974ab08 commit d6d9be0
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,5 +1,6 @@
{% if CELERY_MULTIQUEUE_ENABLED %}
{% for service in ["lms", "cms"] %}
{% set config = iter_celery_workers_config().get(service).get("default") %}
---
apiVersion: apps/v1
kind: Deployment
Expand All @@ -18,7 +19,8 @@ spec:
- "--hostname=edx.{{service}}.core.default.%%h"
- "--max-tasks-per-child=100"
- "--queues=edx.{{service}}.core.default"
- "--pool=threads"
- "--concurrency=16"
{% for setting, value in config.get("extra_params", {}).items() %}
- "--{{setting}}={{value}}"
{% endfor %}
{% endfor %}
{% endif %}

0 comments on commit d6d9be0

Please sign in to comment.