github-actions[bot] opened a new pull request, #75388: URL: https://github.com/apache/airflow/pull/75388
The Dag file is its own entry point on this path, so the parser behind DAG.cli() drops dag_id - there is nothing for the user to type. But action_cli snapshots the namespace and writes the Log row before the handler runs, so every audit row for python my_dag.py dags pause and its five sibling subcommands lands with dag_id NULL: the event cannot be filtered by Dag, and in multi-team mode team_name is resolved from dag_id, so it also drops out of the owning team's view. The back-fills already inside set_is_paused, dag_list_dag_runs and dag_list_jobs cannot cover this. They run after that insert has been committed, and they write to the namespace rather than to the metrics dict that was built from it. Every one of the six subcommands receives the Dag positionally and reads args.dag_id only behind a dag or ... short-circuit, so supplying it changes no control flow - only what the audit row records. (cherry picked from commit 51411acb7e579fbda882503d469128bccfb54783) Co-authored-by: Y-C <[email protected]> Co-authored-by: Eason09053360 <[email protected]> -- 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]
