Vitaly Shulgin
09/09/2020, 7:14 PMjosh
09/09/2020, 7:14 PMVitaly Shulgin
09/09/2020, 7:14 PMprefect-ui : <http://localhost:30562/> # works
prefect-server : <http://localhost:31722/graphql/> # works
prefect-apollo : <http://localhost:30524/graphql> # works
graphql-engine (hasura) : <http://localhost:32078/console> # works
josh
09/09/2020, 7:15 PMprefect server create-tenant -n default
Vitaly Shulgin
09/09/2020, 7:16 PM{"message":"Cannot query field \"tenant\" on type \"Query\".","locations":[{"line":2,"column":5}],"extensions":{"code":"GRAPHQL_VALIDATION_FAILED"}}2020-09-09T19:15:54.798Z {"message":"Cannot query field \"tenant\" on type \"Query\".","locations":[{"line":2,"column":5}],"extensions":{"code":"GRAPHQL_VALIDATION_FAILED"}}
josh
09/09/2020, 7:18 PMVitaly Shulgin
09/09/2020, 7:20 PMjosh
09/09/2020, 7:21 PM0.13.0
(the most recent version is 0.13.6
). This error suggests that you’re using a version of Prefect newer than when the server project was migrated over into a separate repo 🙂Vitaly Shulgin
09/09/2020, 7:22 PM+ prefect-server services scheduler
Usage: prefect-server services [OPTIONS] COMMAND [ARGS]...
Try 'prefect-server services --help' for help.
Error: No such command 'scheduler'.
josh
09/09/2020, 8:51 PMtowel
😅 here’s some information on the newer architecture pattern https://docs.prefect.io/orchestration/server/architecture.htmlVitaly Shulgin
09/09/2020, 9:38 PMjosh
09/09/2020, 9:39 PMVitaly Shulgin
09/09/2020, 9:39 PM[2020-09-09 21:33:06,503] INFO - agent | Starting KubernetesAgent with labels []
[2020-09-09 21:33:06,503] INFO - agent | Agent documentation can be found at <https://docs.prefect.io/orchestration/>
[2020-09-09 21:33:06,504] INFO - agent | Agent connecting to the Prefect API at <http://prefect-apollo:4200>
[2020-09-09 21:33:06,512] INFO - agent | Waiting for flow runs...
josh
09/09/2020, 9:40 PMVitaly Shulgin
09/09/2020, 10:13 PMLast State Message
[10 Sep 2020 1:07am]: Failed to load and execute Flow's environment: FileNotFoundError(2, 'No such file or directory')
import prefect
from prefect import task, Flow
from prefect.environments import LocalEnvironment
@task
def hello_task():
logger = prefect.context.get("logger")
<http://logger.info|logger.info>("Hello, Cloud!")
flow = Flow("hello-flow", tasks=[hello_task])
flow.environment = LocalEnvironment(labels=["any"])
flow.register(project_name="Hello")
prefecthq/prefect:all_extras-0.13.5