-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
Add support for custom celery configs #45038
base: main
Are you sure you want to change the base?
Conversation
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide (https://github.com/apache/airflow/blob/main/contributing-docs/README.rst)
|
1a172e5
to
28d1806
Compare
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.
Thanks for the PR - the contribution looks really small and is efficient. Thanks for taking care for the backwards compatibility.
I assume the fallback handling in default_celery.py:72
is not needed if the config entry is correctly registered as a default in providers/src/airflow/providers/celery/provider.yaml
- There all configs for the provider should be registered. This also would add missing documentation.
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.
Can you also add a test for this?
Addressed the comments. CI is failing not able to debug why CI pipeline is failing. |
26a981b
to
b719528
Compare
@@ -329,6 +329,13 @@ config: | |||
type: string | |||
example: ~ | |||
default: "False" | |||
extra_celery_config: | |||
description: | | |||
Extra celery configs to include in the celery worker |
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.
Can you add a reference to celery page where possible parameters are documented?
Because besides the details in the code this is the ONLY place where this feature is documented and would be sad if users are lost here. Maybe one example if not given in the celery docs would also be cool.
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.
Added the reference to all the configurations which can be applied using this airflow helm config as well as added a sample config also for better understanding.
Except some minor comment I think it is good, let me check what is broken on CI. Nothing related to your code. Then I think... LGTM! |
…nce link for all the celery configs.
…nce link for all the celery configs.
4d67fe8
to
2c56333
Compare
closes: #45037
Description:
Currently Airflow support limited celery options only. This PR adds the support for the additional celery config for celery workers.