Hi! Is there a way in which I can see the flow vis...
# prefect-ui
r
Hi! Is there a way in which I can see the flow visualization of a task that runs other tasks? Due to dynamic requirements i need to make a task run other tasks. I would like to visualize this in the web UI and as of now I amb only seeing the "main" task. I have been looking through the documentation but couldn't find any answers. Thanks in advance! 😀
a
There is no way of doing it directly, but could you explain the problem that you try to solve a bit more? I'm sure we can find a way of solving it without having to call tasks from other tasks.
r
I need to run a flow that: 1. Runs task named "choice". This task will end up returning either choice1 or choice2. 2. After this task has been run, based on the output of task "choice" I will need to run "task1" or "task2". 3. Point (1) and (2) has to be run for a given list that will be dynamically generated in another task-
a
Thanks for explaining - always easier to first understand the problem before suggesting any solutions. It turns out that this is a quite common problem and Prefect has a solution for it called apply_map. This page explains how you can use it
r
Oh, nice! I saw the map function but not the apply_map.
👍 1