Sumit Ghosh
10/25/2023, 1:00 PMprefect_client.create_deployment
method in the Python Client SDK, but it requires the Flow ID. How would I get the flow ID?
Also, I’m not using the serve
method, I wanna use workers, and use docker compose to run everything. I have a prefect server container, and a worker container which starts a worker using the prefect worker
command. After these two are running the flow is not registered with the API yet which makes sense.
So I guess my question is, how should I register the flow and get the flow ID, so that I can later call the create_deployment
method to create deployments whenever needed programmatically.Jake Kaplan
10/25/2023, 2:03 PMprefect_client
@flow
def foo():
pass
flow_id_1 = await prefect_client.create_flow(foo)
Sumit Ghosh
10/25/2023, 2:13 PMserve
would cover this case?Sumit Ghosh
10/25/2023, 2:13 PMalex
10/26/2023, 3:56 PM