Suppose a following situation:
[c1, c2, c3] >> child_task
where all c1
, c2
, c3
and child_task
are operators and have task_id
equal to id1
, id2
, id3
and child_id
respectively.
Task child_task
is also a PythonOperator
with provide_context=True
and python_callable=dummy_func
def dummy_func(**context):
#...
Is it possible to retrieve all parents' ids inside the dummy_func
(perhaps by browsing the dag somehow using the context)?
Expected result in this case would be a list ['id1', 'id2', 'id3']
.