Bianca Hoch
01/29/2025, 7:01 PMPydanticUserError
if you attempt to run the run-deployment.py file as-is when using Prefect version 3.1.14
.
You can correct this by wrapping it in a flow, like so:
from prefect import flow
from prefect.deployments import run_deployment
@flow
def run_deployment_flow():
run_deployment(
name="fetch-weather/push-weather", parameters={"lat": 1, "lon": 2}
)
if __name__ == "__main__":
run_deployment_flow()