https://prefect.io logo
m

Marcin Grzybowski

05/31/2022, 1:41 PM
Hi! So I started playing with Prefect2.0 and here is my question: tasks / and flows are visible on radar - "normal" python functions are not. If I want to achieve "granularity" on the radar I have to use subflows? As I cannot run task from task ?
k

Kevin Kho

05/31/2022, 2:12 PM
You can break up code into smaller tasks? Yes you need to use either of those so Prefect knows to track that piece fo code
m

Marcin Grzybowski

05/31/2022, 2:32 PM
Ok, thank you! My case is that I want to have some reusable code that can be run from different task, but it should be trackable
k

Kevin Kho

05/31/2022, 2:34 PM
I see. That does sound like a good use case for a subflow since those can hold tasks
🙏 1
6 Views