Alex Welch
02/12/2021, 7:45 PM{'type': ['Unsupported value: UniversalRun']}.
It works locally. Here is my code:
import prefect
from prefect import task, Flow
@task
def say_hello():
logger = prefect.context.get("logger")
<http://logger.info|logger.info>("Hello, Cloud!")
with Flow("hello-flow") as flow:
say_hello()
flow.register(project_name="tutorial")
Zanie
prefect diagnostics
?Alex Welch
02/12/2021, 8:23 PMZanie
Alex Welch
02/12/2021, 8:35 PMZanie
Jim Crist-Harif
02/12/2021, 8:41 PMI am running the hello-world flow and trying to get it running in the cloud. However when I do I get the following errorIn the future when presenting errors, please try to provide some context around where the error message appears and what action(s) led to it. An error message with no context or traceback is hard for us to interpret. From the above discussion, I'm guessing you're seeing that message on the flow run page in the UI? This likely indicates that the agent you're running is on an old version of prefect and should be updated.{'type': ['Unsupported value: UniversalRun']}.
Alex Welch
02/12/2021, 8:44 PMJim Crist-Harif
02/12/2021, 8:46 PMAlex Welch
02/12/2021, 8:47 PMpip install prefect
Jim Crist-Harif
02/12/2021, 8:47 PMAlex Welch
02/12/2021, 8:47 PMJim Crist-Harif
02/12/2021, 8:47 PMprefect version
output?Alex Welch
02/12/2021, 8:48 PMJim Crist-Harif
02/12/2021, 8:48 PMAlex Welch
02/12/2021, 8:48 PMJim Crist-Harif
02/12/2021, 8:49 PMAlex Welch
02/12/2021, 8:49 PMZanie
which prefect
command might help you track down where the other version is coming fromAlex Welch
02/12/2021, 8:54 PMZanie
Alex Welch
02/12/2021, 8:56 PMZanie
Prefect Agents are lightweight processes for orchestrating flow runs. Agents run inside a user's architecture, and are responsible for starting and monitoring flow runs. During operation the agent process queries the Prefect API for any scheduled flow runs, and allocates resources for them on their respective deployment platforms.
Note that both Prefect Agents (and flow runs) only send requests out to the Prefect API, and never receive requests themselves. This is part of our Hybrid Execution Model, and helps keep your code and data safe.
A single agent can manage many concurrent flow runs - the only reason to have multiple active agents is if you need to support flow runs on different deployment platforms.
Alex Welch
02/12/2021, 8:58 PMZanie
Alex Welch
02/12/2021, 9:04 PMZanie
Alex Welch
02/12/2021, 9:49 PMdocker run -it prefecthq/prefect:latest
, when i then run prefect server start
I get a FileNotFoundError looking for a docker-compose file. I am running the command in the docker container.Zanie
prefect server start
uses docker-compose to spin up many containers which is tricky to do from within a docker container (I would not recommend trying to run it that way)Alex Welch
02/12/2021, 9:52 PMZanie
DockerRun
and Prefect Cloud / Server without necessarily having prefect installed on your development machineAlex Welch
02/12/2021, 9:55 PMZanie
Alex Welch
02/12/2021, 9:59 PMZanie
Alex Welch
02/12/2021, 10:00 PMZanie
Alex Welch
02/12/2021, 10:02 PMZanie
Alex Welch
02/12/2021, 10:07 PM