hi, i tried running the function from the cli. whe...
# pacc-mar-12-13-2024
a
hi, i tried running the function from the cli. when i look in the brower it says 'Late'. any idea why that might be?
prefect deployment run 'fetch-weather/deploy-1' --param lat=43 --param lon=12
h
You need to let prefect running aside
Let say you have runned your script with the .serve() function, it needs to stay up and running, then you can open another shell where you send your command and it should run fine By the way, the "Lates" flow will run well when you run prefect
🙌 3
thank you 2
g
So I need to run scrpt with .serve() --> meaning that creating prefect flow and running
prefect deployment
means that I make a deployment with that Flow, am I understanding correctly?
a
Yes, you create a deployment for the flow to be able to schedule the flow runs for your flow. The deployment will then wait for actions to execute the flows
Or use the scheduling that is configured