potiuk commented on issue #34015:
URL: https://github.com/apache/airflow/issues/34015#issuecomment-1702938730
I could not reproduce it.
If it was for celery only - then you probably do not have latest celey
provider installed. As of Airlfow 2.7.0, configuration coming from providers
comes from the providers. In order to use and configure celery provider, you
need to have celery provider installed.
So it could be that you have no celery provider installed.
I confifgured it this way:
```
[core]
fernet_key_cmd = /usr/bin/env bash -c "echo -n XXX"
[celery]
broker_url_cmd = /usr/bin/env bash -c "echo -n ZZZ"
```
And it seems to be working fine:
```
root@44408d006bc4:/opt/airflow# airflow config get-value core fernet_key
XXX
root@44408d006bc4:/opt/airflow# airflow config get-value celery broker_url
The option [celery/broker_url] is not found in config.
root@44408d006bc4:/opt/airflow# pip install apache-airflow-providers-celery
Collecting apache-airflow-providers-celery
Obtaining dependency information for apache-airflow-providers-celery from
https://files.pythonhosted.org/packages/ae/37/6751f74137201740735e93e77365895fefe3fab80f4a5ec71cb62964c013/apache_airflow_providers_celery-3.3.3-py3-none-any.whl.metadata
Downloading
apache_airflow_providers_celery-3.3.3-py3-none-any.whl.metadata (5.8 kB)
.....
root@44408d006bc4:/opt/airflow# airflow config get-value celery broker_url
ZZZ
```
But with fernet_key - notihng changed in Airflow 2.7.0 - so It's surprising
it does not work for you. Possibly you have some configuration that overrides
it?
You need dig deeper - where you do not see it, how did you check it , what
was the command you run so that it did not work etc - because it does not seem
reproducible.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]