You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/08/19 09:06:58 UTC

[GitHub] [airflow] ephraimbuddy commented on a change in pull request #17207: WIP: Fix external_executor_id not being set for manually run jobs.

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



##########
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:
       ```suggestion
       return os.environ.get("external_executor_id", None)
   ```




-- 
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-unsubscribe@airflow.apache.org

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