Hi guys. Does anyone know if the DAG can be accessed from within a task during runtime?
09/22/2020, 1:53 PM
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.
09/23/2020, 5:09 PM
see the other tasks in the flow
09/24/2020, 1:31 PM
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.