I am still learning Prefect. I recently linked my...
# ask-community
b
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
Once you've logged into Prefect Cloud, even local flow runs will be tracked in your Cloud workspace
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
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.