Hi guys. Does anyone know if the DAG can be access...
# prefect-community
o
Hi guys. Does anyone know if the DAG can be accessed from within a task during runtime?
j
Hi @orcaman, can you clarify more what you mean by this? Do you want to see the other tasks in the flow? Modify the flow? We'd need more information to help answer this question.
o
see the other tasks in the flow
j
Generally we recommend writing your tasks as functions that do a thing, and providing tasks they need to know about as arguments to those functions. Having a task know about another task that isn't a direct dependency is generally an antipattern in prefect. Can you go into more about why you want this behavior? There may be a cleaner way to implement what you want here using patterns that are native to prefect.