potiuk commented on code in PR #25161:
URL: https://github.com/apache/airflow/pull/25161#discussion_r936017428
##########
airflow/task/task_runner/standard_task_runner.py:
##########
@@ -84,12 +85,16 @@ def _start_by_fork(self):
if job_id is not None:
proc_title += " {0.job_id}"
setproctitle(proc_title.format(args))
-
return_code = 0
try:
# parse dag file since `airflow tasks run --local` does not
parse dag file
dag = get_dag(args.subdir, args.dag_id)
- args.func(args, dag=dag)
+ with _airflow_parsing_context_manager(
Review Comment:
That quite depends on the answer of whether we can somewhat standardize the
level at which we inject the parser (see above).
--
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]