dheerajturaga commented on code in PR #60675:
URL: https://github.com/apache/airflow/pull/60675#discussion_r2738263398
##########
providers/celery/src/airflow/providers/celery/cli/celery_command.py:
##########
@@ -192,13 +192,18 @@ def worker(args):
team_config = None
if hasattr(args, "team") and args.team:
# Multi-team is enabled, create team-specific Celery app and use team
based config
- try:
- from airflow.executors.base_executor import ExecutorConf
- except ImportError:
- raise SystemExit(
- f"Error: Multi-team support (--team {args.team}) requires
Airflow >=3.2. "
- "Please upgrade Airflow or remove the --team parameter."
+ # This requires Airflow 3.2+, and core.multi_team config to be true to
be enabled.
+ if not AIRFLOW_V_3_2_PLUS:
Review Comment:
Nice, this should be much safer than the previous approach
--
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]