-
|
Hello prefect community, I want to fetch task's state details. I tried following query in a python program: But, it results into following error: Somebody please help. Thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
zanieb
Nov 9, 2020
Replies: 2 comments 1 reply
-
|
Hi.. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Hi @najoshi7 Your issue is that you must pluralize In [14]: client = prefect.Client()
...:
...: query = {
...: "query": {
...: "flow": {
...: "id": True,
...: "name": True,
...: "flow_runs": {
...: "state": True,
...: "id": True
...: }
...: }
...: }
...: }
...:
...: x = client.graphql(query)
In [15]: x
Out[15]:
{
"data": {
"flow": [
{
"id": "7761cd4a-292c-4571-8b0d-0f158861ca4a",
"name": "empty",
"flow_runs": []
},
{
"id": "22abcaa0-d22b-4217-b4cd-48102aa7622a",
"name": "empty",
"flow_runs": []
},
{
...I'll work on exposing a better error message! |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
najoshi7
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @najoshi7
Your issue is that you must pluralize
flow_runwhen nested there e.g.