-
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
base: main
Are you sure you want to change the base?
Conversation
27dda21
to
c858d5d
Compare
c858d5d
to
4282cc6
Compare
(cherry picked from commit c858d5d)
4282cc6
to
99d58ec
Compare
{% 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
{% 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
Description
This PR allows to pass custom parameters to any celery worker deployment