Jorricks commented on a change in pull request #17207:
URL: https://github.com/apache/airflow/pull/17207#discussion_r692015638



##########
File path: airflow/cli/commands/task_command.py
##########
@@ -174,6 +175,14 @@ def _run_raw_task(args, ti: TaskInstance) -> None:
     )
 
 
+def _extract_external_executor_id(args) -> Optional[str]:
+    if "external_executor_id" in args:
+        return args.external_executor_id
+    elif "external_executor_id" in os.environ:
+        return os.environ.get("external_executor_id")
+    return None

Review comment:
       Good suggestion! Missed that one.




-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to