CJ
11/15/2024, 5:15 PM# pyproject.tom
[tool.prefect]
logging.level = "DEBUG"
api.url = "<http://127.0.0.1:4200/api>"
Any guidance is appreciatedNate
11/15/2024, 5:16 PMprefect config view
say?CJ
11/15/2024, 5:20 PMNate
11/15/2024, 5:22 PMtoml
file after you ran prefect server start
?CJ
11/15/2024, 5:23 PMNate
11/15/2024, 5:24 PMValueError: No Prefect API URL provided. Please set PREFECT_API_URL to the address of a running Prefect server.
CJ
11/15/2024, 5:28 PMpython main.py
CJ
11/15/2024, 5:28 PM# main.py
if __name__ == "__main__":
run_pipeline.serve(name="initial-deployment", cron="*/3 * * * *")
Nate
11/15/2024, 5:31 PMfrom prefect.settings import Settings
print(Settings().api)
CJ
11/15/2024, 5:35 PMNate
11/15/2024, 5:36 PMpyproject.toml
settings source
if you dont mind checking, does it work if you set it in .env
?CJ
11/15/2024, 5:43 PMapi.url = "<http://127.0.0.1:4200/api>"
or
PREFECT_API_URL="http://127.0.0.1:4200/api"Nate
11/15/2024, 5:43 PMCJ
11/15/2024, 5:44 PMNate
11/15/2024, 5:45 PMCJ
11/15/2024, 5:50 PM