https://prefect.io logo
Title
m

Mitchell Bregman

11/11/2019, 9:28 PM
hey guys, just out of curiosity... in
get_module_metadata
i am returning a class object; is this the reason for the doubly directed dependency arrow? it seems as though in all other tasks, where I am returning standard python data types, do not have a doubly...
j

josh

11/11/2019, 9:36 PM
Interesting, maybe @Chris White knows more about this. Here’s a flow viz in which task
a
returns a class and it doesn’t give me double arrows for the single edge 🤔
m

Mitchell Bregman

11/11/2019, 9:42 PM
hmmmmm, might be something I'm doing
c

Chris White

11/11/2019, 9:46 PM
Yea this suggests you are setting an downstream / upstream dependency twice, prefect doesn’t know what your tasks return since all computation is deferred
each line represents a Prefect Edge, so the double lines suggest two edges are added for some reason
m

Mitchell Bregman

11/11/2019, 10:05 PM
Got it! The issue was; i set
upstream_tasks
when I was passing a dependent parameter - and this task automatically recognizes the upstream because of this
Appreciate it!
c

Chris White

11/11/2019, 10:06 PM
nice - anytime!