Fina Silva-Santisteban
10/19/2023, 10:08 PMprefect --no-prompt deploy --all
and that's where I get the following error:
prefect.exceptions.MissingFlowError: Flow function with name 'hello-world' not found in 'hello_world.py'.
This is how my file containing the flow looks like (a demo from the prefect docs)
hello_world.py
@flow(log_prints=True)
def hello_world(name: str = "world", goodbye: bool = False):
print(f"Hello {name} from Prefect! š¤")
if goodbye:
print(f"Goodbye {name}!")
if __name__ == "__main__":
hello_world.serve(name="my-first-deployment",
tags=["onboarding"],
parameters={"goodbye": True})
And this is the entry point I stated
prefect.yaml
deployments:
- name: null
version: null
tags: []
description: null
schedule: {}
flow_name: null
entrypoint: hello_world.py:hello-world
Does anyone have ideas on how to fix this? I'd be very thankful for any and all advice and suggestions! šFina Silva-Santisteban
10/19/2023, 10:10 PMprefect deployment run 'hello-world/my-first-deployment'
(This works locally!)Jenny
10/19/2023, 10:18 PMhello_world.py:hello_world
as the entry point in your yaml file?Fina Silva-Santisteban
10/20/2023, 3:45 PMJenny
10/20/2023, 3:50 PM