https://prefect.io logo
#prefect-community
Title
# prefect-community
d

Dylan

04/18/2022, 6:32 PM
Hey when I try to toggle on a schedule I get an error message in the UI back from GraphQL, this is on a cloud backend with a K8's agent running on EKS
a

Anna Geller

04/18/2022, 6:35 PM
Do you get this from the UI or interactive API? I just tried that in the UI from the flow page and it seemed to work - the type of agent shouldn't be relevant here
d

Dylan

04/18/2022, 6:40 PM
UI
I don’t see an actionable or descriptive error anywhere I can action on
I do see warnings that there’s no agent looking for the flow’s labels, so I’m modifying our agent label params to take care of that. Could just be an edge case being handled a little weird.
a

Anna Geller

04/18/2022, 6:44 PM
if this is some UI issue, can you send some screenshots of what you see? alternatively, you could directly open a GitHub issue in the UI repo https://github.com/PrefectHQ/ui
k

Kevin Kho

04/18/2022, 6:50 PM
I think the actual thing here is you can’t toggle schedules right? When you go to the schedules tab of the Flow, what do you see?
d

Dylan

04/18/2022, 6:57 PM
inspect element -> networking tab, then lots of graphql stuff including the message:
Copy code
[{
    "data": {
        "set_schedule_active": {
            "success": false,
            "__typename": "success_payload"
        }
    }
}]
But there’s no stack trace or error since that’s kinda how Graphql does things
There’s a lot more graphql data in the browser I can send over if you want
k

Kevin Kho

04/18/2022, 6:59 PM
I mean if you go to the Flow page and then click Settings and then Schedule
d

Dylan

04/18/2022, 6:59 PM
Oh, I get the same
k

Kevin Kho

04/18/2022, 7:00 PM
I mean I want to see the configured schedules to see if they look right
d

Dylan

04/18/2022, 7:02 PM
There wasn’t one. I created one and the toggle works now.
Seems like a bit of a gap but nothing that can’t be worked around with user behavior
k

Kevin Kho

04/18/2022, 7:03 PM
Oh so there was just nothing to toggle?
d

Dylan

04/18/2022, 7:04 PM
Yeah basically, no schedule created yet, so when I toggled it on the UI threw an error but wasn’t clear that it was bc I didn’t have a schedule yet.
Makes sense, but just a bit of a gap.
k

Kevin Kho

04/18/2022, 7:05 PM
Yeah I think that’s worth filing an issue in the UI repo. A message would be helpful, even if just a message to check if you have a schedule
d

Dylan

04/18/2022, 7:08 PM
100%
will do
k

Kevin Kho

04/19/2022, 12:30 AM
Thank you!
6 Views