Madison Schott
07/26/2021, 2:14 PMRuntimeError: Error while contacting API at <https://api.prefect.io>
Mariia Kerimova
07/26/2021, 2:27 PMexport PREFECT__CLOUD__AGENT__LEVEL=DEBUG
and run the agent again?Madison Schott
07/26/2021, 2:29 PMMadison Schott
07/26/2021, 2:30 PMMariia Kerimova
07/26/2021, 2:30 PMprefect version
?Madison Schott
07/26/2021, 2:30 PM0.14.22
Mariia Kerimova
07/26/2021, 2:31 PMprefect diagnostics
please?Madison Schott
07/26/2021, 2:31 PM{
"config_overrides": {},
"env_vars": [
"PREFECT__CLOUD__AGENT__LEVEL"
],
"system_information": {
"platform": "macOS-10.15.7-x86_64-i386-64bit",
"prefect_backend": "cloud",
"prefect_version": "0.14.22",
"python_version": "3.9.6"
}
}
Mariia Kerimova
07/26/2021, 3:02 PMpip install --upgrade prefect
and run your agent with service account key prefect agent local start -k <your service account key>
Madison Schott
07/26/2021, 3:15 PMMadison Schott
07/26/2021, 3:15 PMMadison Schott
07/26/2021, 3:19 PMMariia Kerimova
07/26/2021, 3:24 PMpython <file_with_flow>.py
, right? Can you check in flow dashboard in UI that a new version of the flow showed up? It's in the top right cornerMadison Schott
07/26/2021, 3:25 PMMadison Schott
07/26/2021, 3:25 PMMadison Schott
07/26/2021, 3:25 PMMariia Kerimova
07/26/2021, 3:35 PMprefect register --force ...
Madison Schott
07/26/2021, 3:36 PMMadison Schott
07/26/2021, 3:37 PMMariia Kerimova
07/26/2021, 3:38 PMprefect register --path flow.py --project my-project --force
Mariia Kerimova
07/26/2021, 3:41 PMMadison Schott
07/26/2021, 3:43 PMweb_sessions_flow.register(project_name="Winc")
Mariia Kerimova
07/26/2021, 3:46 PMMadison Schott
07/26/2021, 3:50 PMMariia Kerimova
07/26/2021, 4:10 PMMariia Kerimova
07/26/2021, 4:10 PM--force
flag with that command?Madison Schott
07/26/2021, 4:12 PMMadison Schott
07/26/2021, 4:12 PMMariia Kerimova
07/26/2021, 4:42 PMweb_sessions_flow.register(project_name="Winc")
line saved in the file <name_of_the_file>.py and you ran prefect register --project XXX --path <name_of_the_file>.py --force
and it doesn't show up in the UI, right?
Can you try to run python <name_of_the_file>.py
and check if the flow is in UI now?Madison Schott
07/26/2021, 5:34 PMMadison Schott
07/26/2021, 5:34 PMMadison Schott
07/26/2021, 5:34 PMMadison Schott
07/26/2021, 5:34 PMMariia Kerimova
07/26/2021, 5:36 PMMadison Schott
07/26/2021, 5:38 PMMadison Schott
07/26/2021, 5:38 PMMadison Schott
07/26/2021, 5:38 PMMariia Kerimova
07/26/2021, 5:55 PMMadison Schott
07/27/2021, 2:37 PMMariia Kerimova
07/27/2021, 2:56 PMMadison Schott
07/27/2021, 3:03 PM.run_agent
with the token id creates a local agent every time it is ran?Madison Schott
07/27/2021, 3:03 PMMariia Kerimova
07/27/2021, 3:04 PMMariia Kerimova
07/27/2021, 3:08 PMprefect register ...
or python <file>.py
)