You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A TypeScript task's return value cannot currently feed a downstream .expand(). The Python task runner handles this in _push_xcom_if_needed, but a foreign runtime cannot inspect the Dag to learn its output has mapped dependants.
#70571 introduces the server-derived TIRunContext.has_mapped_dependants flag; when set, the supervisor records mapped_length = len(value) on the return-value SetXCom on the task's behalf.
Background
A TypeScript task's return value cannot currently feed a downstream
.expand(). The Python task runner handles this in_push_xcom_if_needed, but a foreign runtime cannot inspect the Dag to learn its output has mapped dependants.#70571 introduces the server-derived
TIRunContext.has_mapped_dependantsflag; when set, the supervisor recordsmapped_length = len(value)on the return-valueSetXComon the task's behalf.What needs to happen
NodeCoordinatorpath unchanged (it should, being supervisor-side rather than runtime-side).hasMappedDependantson the TypeScriptTaskContextwhere useful to handler authors, following the existing camelCase mapping convention.@task.stubreturning an array, with a downstream Python.expand()over it.Acceptance criteria
.expand()causes those dependants to expand to the array's length.mapped_length(no behaviour change).Context