https://prefect.io logo
Title
r

Roy

07/31/2020, 12:49 PM
Hi! I have defined a flow and can run it with
flow.run()
. However, these runs do not show up in the Prefect Dashboard, even when I
.register()
them (the flow shows up in the web interface and I can run it from there, but starting it with
.run()
does not show them as a Run). Is there a way to make them show up without running an agent?
j

Jeremiah

07/31/2020, 12:59 PM
Hi @Roy,
flow.run()
is for interactive or in-process use only and doesn’t communicate with the Server. In the future, we’ll make it possible to dynamically register/track runs from
flow.run()
but today you’ll need to register and kick off the run from the UI or API.
r

Roy

07/31/2020, 1:06 PM
Thank you. I look forward to that! We run flows locally and only occasionally, but I love the web interface with the graphs and stuff 🙂
👍 1
j

Jeremiah

07/31/2020, 1:06 PM
We hear you 🙂
r

Roy

07/31/2020, 1:09 PM
I was thinking maybe I could expand the default
docker-compose.yml
to run an agent in a container along with the web interface, but this may be a hassle for us since this makes it more difficult to access files locally (which would require mapping volumes etc.). We use Prefect to transform a bunch of
csv
files.