Hafsa Junaid
08/01/2022, 4:24 PM$ prefect backend serverTaylor Curran
08/01/2022, 4:26 PMprefect orion start will allow you to achieve orchestration locally and give you access to a UI without needing Prefect cloud.Robert Bastian
08/01/2022, 5:29 PMOscar Björhn
08/01/2022, 6:00 PMRobert Bastian
08/02/2022, 1:06 PMRuntimeError: Cannot create flow run. Failed to reach API at <http://127.0.0.1:4200/api/>.Taylor Curran
08/02/2022, 1:13 PMRobert Bastian
08/02/2022, 2:53 PMimport requests
from prefect import flow
@flow(name="test")
def call_api(url:str):
return requests.get(url).json()
api_result = call_api("<http://time.jsontest.com/>")
print(api_result)Robert Bastian
08/12/2022, 2:29 PMPREFECT_API_URL=Taylor Curran
08/12/2022, 3:08 PMMars
08/16/2022, 11:13 PMprefect version you can see the server type is hosted, not ephemeral.
I had to use the workaround of explicitly clearing the PREFECT_API_URL= variable before calling the prefect program in order to switch back to the ephemeral API.