dirrao commented on code in PR #36576:
URL: https://github.com/apache/airflow/pull/36576#discussion_r1441445075
##########
airflow/cli/commands/celery_command.py:
##########
@@ -131,6 +131,10 @@ def worker(args):
if autoscale is None and conf.has_option("celery", "worker_autoscale"):
autoscale = conf.get("celery", "worker_autoscale")
+ max_worker, min_worker = [int(x) for x in test.split("-")]
+ if min_worker > max_worker:
+ raise SystemExit("The option for worker autoscale should be
max_concurrency,min_concurrency")
+
Review Comment:
```suggestion
max_worker, min_worker = [int(x) for x in autoscale.split("-")]
if min_worker > max_worker:
raise SystemExit("The option for worker autoscale should be
max_concurrency,min_concurrency")
```
This validation should be done for default configuration as well.
--
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]