-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: allow to pass extra parameters for celery workers #11
Conversation
27dda21
to
c858d5d
Compare
c858d5d
to
4282cc6
Compare
4282cc6
to
99d58ec
Compare
tutorcelery/patches/k8s-deployments
Outdated
{% for setting, value in config.get("extra_params", {}).items() %} | ||
- "--{{setting}}={{value}}" | ||
{% endfor %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can have the logic for the command in the python code and use a template filter to render the final command.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer rendering this code on the template, it's just a setting and a value
tutorcelery/patches/k8s-deployments
Outdated
{% for setting, value in config.get("extra_params", {}).items() %} | ||
- "--{{setting}}={{value}}" | ||
{% endfor %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could this be susceptible to malicious injection of some sort?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so
2e60d20
to
c176c05
Compare
c176c05
to
0d9a0a8
Compare
Description
This PR allows to pass custom parameters to any celery worker deployment