jason810496 commented on code in PR #51738:
URL: https://github.com/apache/airflow/pull/51738#discussion_r2164319969


##########
airflow-core/src/airflow/cli/commands/backfill_command.py:
##########
@@ -70,12 +74,18 @@ def create_backfill(args) -> None:
             console.print(f"    - {d}")
         return
 
+    try:
+        user = getuser()
+    except AirflowConfigException as e:
+        log.warning("Failed to get user name from os: %s", e)
+        user = None

Review Comment:
   Should we modularize the this try-except block for getting user from 
platform, as this utility will be reused in `assets`, `backfills`, `dag_run`, 
`task` commands .



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