Michael Porter
04/30/2024, 4:26 PMfrom prefect import flow
@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},
interval=60)
Then I get this message:
11:08:21.937 | WARNING | prefect.runner - Cannot schedule flows on an ephemeral server; run `prefect server start` to start the scheduler.
Your flow 'hello-world' is being served and polling for scheduled runs!
To trigger a run for this flow, use the following command:
$ prefect deployment run 'hello-world/my-first-deployment'
It seems to run and the script continues to run but when checking my dashboard and trying to follow along in the steps, it never shows the run as actually scheduled. Any help would be appreciated.Kevin Grismore
04/30/2024, 4:33 PMMichael Porter
04/30/2024, 5:18 PMMichael Porter
04/30/2024, 5:19 PMKevin Grismore
04/30/2024, 5:19 PMMichael Porter
04/30/2024, 5:20 PMKevin Grismore
04/30/2024, 5:23 PMprefect profile inspect
do you see your api key and api url?Michael Porter
04/30/2024, 5:24 PMNo name provided, defaulting to 'default'
Profile 'default' is empty.
Is what I get when I run that.Kevin Grismore
04/30/2024, 5:25 PMKevin Grismore
04/30/2024, 5:26 PMMichael Porter
04/30/2024, 5:26 PMKevin Grismore
04/30/2024, 5:28 PMMichael Porter
04/30/2024, 5:28 PMMichael Porter
04/30/2024, 6:15 PMMichael Porter
05/01/2024, 1:31 PM