Damien Ramunno-Johnson
05/07/2021, 8:30 PMIn [1]: 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()
...:
...: # Register the flow under the "tutorial" project
...: flow.register(project_name="tutorial")
but get
ClientError: [{'path': ['user'], 'message': 'field "user" not found in type: \'query_root\'', 'extensions': {'path': '$.selectionSet.user', 'code': 'validation-failed', 'exception': {'message': 'field "user" not found in type: \'query_root\''}}}]
Kevin Kho
Damien Ramunno-Johnson
05/07/2021, 8:43 PMno_url=True
does seem to make it work.
prefect agent start --name "laptop" --token *****
to start the agent, and then used the same token as
export PREFECT__CLOUD__AUTH_TOKEN=****
Kevin Kho
Kevin Kho
Damien Ramunno-Johnson
05/07/2021, 8:52 PMprefect 0.14.17
I am using the token from the getting started page. I had done this with the free version of cloud yesterday, but just switched on a trial enterprise account. And I did see that one difference is the API is deprecated. Maybe I can try with a service account token?Kevin Kho
Kevin Kho
Anthony Head
05/07/2021, 9:00 PMDamien Ramunno-Johnson
05/07/2021, 9:03 PMGeorge Coyne
05/07/2021, 9:04 PM