justin
06/18/2020, 9:19 PM#prefect_test.py
import prefect
from prefect import task, Flow
@task
def hello_task():
logger = prefect.context.get("logger")
<http://logger.info|logger.info>("Hello, Cloud!")
flow = Flow("hello-flow", tasks=[hello_task])
flow.register()
flow.run_agent()
I've got my prefect server running. I started with the following command: prefect server start --hasura-port=3050
.
So I then see that when I run the prefect_test.py file above it submits the flow and I have a url where I want to go run the flow. Something like this: <http://localhost:8080/flow/6e437b8f-9fc2-41c1-9862-311d9a423442>
I follow this link to use the UI to run the flow and I have an empty screen.
Anything obvious I am missing?nicholas
06/18/2020, 9:20 PMjustin
06/18/2020, 9:21 PMnicholas
06/18/2020, 9:22 PMendpoint
var in config.toml
, that's where prefect is registering flows8080
by default (this port will also need to be exposed)justin
06/18/2020, 9:28 PMnicholas
06/18/2020, 9:28 PMjustin
06/18/2020, 9:28 PMnicholas
06/18/2020, 9:28 PMjustin
06/18/2020, 9:29 PMx.x.x.x:8080?
nicholas
06/18/2020, 9:30 PMjustin
06/18/2020, 9:30 PM[server]
[server.ui]
graphql_url = "<http://0.0.0.0:4200/graphql>"
[endpoint]
ui = "<http://0.0.0.0:8080>"
nicholas
06/18/2020, 9:30 PMjustin
06/18/2020, 9:31 PMnicholas
06/18/2020, 9:32 PMjustin
06/18/2020, 9:33 PMprefect backend server
nicholas
06/18/2020, 9:34 PMjustin
06/18/2020, 9:34 PMnicholas
06/18/2020, 9:34 PMjustin
06/18/2020, 9:35 PMnicholas
06/18/2020, 9:37 PM/graphql
route included?justin
06/18/2020, 9:37 PMnicholas
06/18/2020, 9:38 PMjustin
06/18/2020, 9:38 PMnicholas
06/18/2020, 9:38 PMjustin
06/18/2020, 9:38 PMGET query missing.
nicholas
06/18/2020, 9:39 PMjustin
06/18/2020, 9:41 PMnicholas
06/18/2020, 9:41 PMjustin
06/18/2020, 9:41 PMnicholas
06/18/2020, 9:43 PMjustin
06/18/2020, 9:44 PM