potiuk commented on code in PR #25161:
URL: https://github.com/apache/airflow/pull/25161#discussion_r936585249


##########
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:
   Right. Now yes. I see we  now parse it here.



##########
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:
   Stupid me.



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

Reply via email to