Hey folks. Getting ephemeral server warning warning when trying to run a python file that tries to serve a flow with a schedule. My intention is to use local server / not to use cloud. Do I need to explicitly instantiate a server? Is there a good way to do it programmatically / not from the terminal?
Warning:
`19
0407.659 | WARNING | prefect.runner - Cannot schedule flows on an ephemeral server; run
prefect server start
to start the scheduler.`
Code:
if __name__ == "__main__":
interval = 25
execute_workflow.serve(interval=interval, parameters={"tasks_data": tasks_data})
https://gist.github.com/andrii-i/de14651c12d288dd27475313a541b872