Hi Folks, is there a way for the Timeline view whe...
# prefect-community
c
Hi Folks, is there a way for the Timeline view when running a flow to display each map iteration of a task in its own bar? It'd be nice to see the work actually happening in parallel visually. If it's easier to do with Dask (I'm using the
LocalDaskExecutor
) - Does anyone know how I can visualise the Dask Diagnostics when running Prefect flows? I know I can look at the individual mapped tasks, but I just wanted to see if there's a similar visualisation to how Dask does it
f
Hi @ciaran, I’m sorry I can’t answer your question (but I’m sure the prefect devs will soon hop in!). I hope you don’t mind me asking you a Q! Does the
LocalDaskExecutor
work with the local prefect agent or do you need to use a different one?
c
Hi @Fina Silva-Santisteban - No worries! As far as I'm aware, it's with the local agent (I've not spun up any other agents and it's been running so 😅)
I'm rope learning as I go
f
Thank you @ciaran! Me too! 😹 I somehow had the impression I needed to switch the agent first, but I’ll give it a try like this!
c
I literally just dropped:
Copy code
flow.executor = LocalDaskExecutor(scheduler="threads") # This line
flow.register(project_name="test-project")
The first line in and it worked
🤩 1
I'm making a big assumption that it's actually running Dask, but it does run quicker!
f
Thank you for your help @ciaran! I’ve picked the
threads
as well since I’m running a bunch of db calls and pandas. If you have tasks that can run in parallel you should be able to see that happening in the timeline view when using threads! It’s amazing 🤩
c
Haha that's what I'm trying to get @Fina Silva-Santisteban but with the iterations of a mapped task!
💡 1