-
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
celery executer with SQS and predefined_queues #11225
Comments
This section only accepts strings as values. You need to use "celery_config_options" to set-up other types. See: airflow/airflow/executors/celery_executor.py Lines 66 to 69 in 3ca11eb
|
Thanks. I am using my celery configuration file for now. But do you think we can add |
I have no experience with SQS, but it sounds like a good solution. |
well |
@auvipy can you share some details about Celery 5? What is the status of? Should we think about migration? why is it worth migrating? |
@sudarshan2906 @mik-laj -- did you find a solution for this? It seems like you would need to make a small change to
source: https://docs.celeryproject.org/en/4.4.2/getting-started/brokers/sqs.html?highlight=sqs |
@chris-french Yup, I got it working using celery version to be 4.4.2. But the predefined_queues property was not supported by airflow as its a dict format. I used a celery_config file and changed the celery_config location in celery_config.py
|
@sudarshan2906 - can you show the
My
EDIT to add, an exception higher up in the stack trace: The specific line in my airflow.cfg: Thanks! |
For anyone who is still struggling with the import path of celery config here is how to import it:
Airflow now should pick up your new celery config and apply it to the worker |
can anyone check this if it is helpful celery/kombu#1450 ? |
This issue has been automatically marked as stale because it has been open for 365 days without any activity. There has been several Airflow releases since last activity on this issue. Kindly asking to recheck the report against latest Airflow version and let us know if the issue is reproducible. The issue will be closed in next 30 days if no further activity occurs from the issue author. |
This issue has been closed because it has not received response from the issue author. |
The custom celery config file should be kept under PYTHONPATH. Here are the built-in PYTHONPATH.
I have faced similar issue, but after placing the custom config file in ({AIRFLOW_HOME}/config) it worked fine. More details here |
Hi I am using airflow 1.10.12 with celery executor with SQS. When configuring
predefined_queues
in celery as mentioned here I am getting the bellow error:airflow.cfg:
The text was updated successfully, but these errors were encountered: