o-nikolas commented on code in PR #60675:
URL: https://github.com/apache/airflow/pull/60675#discussion_r2742724345
##########
providers/celery/src/airflow/providers/celery/cli/celery_command.py:
##########
@@ -218,8 +237,8 @@ def worker(args):
autoscale = args.autoscale
skip_serve_logs = args.skip_serve_logs
- if autoscale is None and conf.has_option("celery", "worker_autoscale"):
- autoscale = conf.get("celery", "worker_autoscale")
+ if autoscale is None and config.has_option("celery", "worker_autoscale"):
Review Comment:
It is a bit of an invalid use case, it requires the user to be trying to use
a feature on a version of Airflow where the feature doesn't exist. But it may
happen. I can look into writing a test to cover it.
--
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]