I am still learning Prefect. I recently linked my local development to cloud and performed my first deployment of a flow on Cloud; small job, scheduled 1x/day. I am writing a new flow, and previously I would use
python myflow.py
to run my script locally after starting the server. This time, the run wasn't local, but on the cloud.
My q: how I can run my script locally before actually "moving" it to the cloud. I had not yet deployed this flow, so this one caught me off guard.
k
Kevin Grismore
10/13/2024, 12:11 AM
Once you've logged into Prefect Cloud, even local flow runs will be tracked in your Cloud workspace
Kevin Grismore
10/13/2024, 12:12 AM
I imagine that's what happened here: you logged in so you could create deployments, and subsequent local runs of this new flow are appearing in the cloud UI. That's expected! Any place a flow is run that's authed to a cloud workspace will send flow run data to that workspace
b
Brock
10/13/2024, 12:14 AM
Thanks for the reply, especially on a weekend. Is my "workflow" off, as I am both writing bits locally and then pushing to Cloud in order to deploy. I assumed that until I deployed the flow programmatically, I would need the local server to fire the run. It's not intuitive that a flow that has yet to be deployed fires on Cloud, at least to me.
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.