uranusjr commented on code in PR #75751:
URL: https://github.com/apache/airflow/pull/75751#discussion_r4704404855
##########
task-sdk/src/airflow/sdk/execution_time/task_runner.py:
##########
@@ -1520,6 +1514,12 @@ def _prepare(ti: RuntimeTaskInstance, log: Logger,
context: Context) -> ToSuperv
jinja_env = ti.task.dag.get_template_env()
ti.render_templates(context=context, jinja_env=jinja_env)
+ # Build the asset lookups now. This makes sync supervisor calls, which may
+ # deadlock if they are first made from async task code instead.
+ context["inlet_events"].build_lookups()
Review Comment:
Added a test case for this.
--
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]