bugraoz93 commented on code in PR #45255:
URL: https://github.com/apache/airflow/pull/45255#discussion_r1898740765


##########
providers/src/airflow/providers/celery/executors/celery_executor.py:
##########
@@ -163,8 +162,12 @@ def __getattr__(name):
 
 CELERY_CLI_COMMAND_PATH = (
     "airflow.providers.celery.cli.celery_command"
-    if Version(airflow_version) >= Version("2.8.0")
-    else "airflow.cli.commands.local_commands.celery_command"
+    if AIRFLOW_V_2_8_PLUS
+    else (
+        "airflow.cli.commands.local_commands.celery_command"
+        if AIRFLOW_V_3_0_PLUS

Review Comment:
   Adjusted to flat `if/elif/else`. It was nested so I left it that way while 
indeed putting it in the wrong place :sweat_smile: Thanks!



-- 
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]

Reply via email to