ui icon indicating copy to clipboard operation
ui copied to clipboard

Validate that Scheduled have Required Parameters

Open marvin-robot opened this issue 4 years ago • 1 comments

Opened from the Prefect Public Slack Community

pedro: Hi again. How can I troubleshoot a schedule? I set up a daily clock/schedule via the Prefect Cloud UI but I don't see any scheduled flows and nothing ran as expected. The schedule is enabled.

pedro:

mariia: Hello Pedro! Not sure how to replicate this error. Could you run this query and check if schedule is attached:

query {
  flow_group(where: {id: {_eq: "<flow_group_id>"}}) {
    id
    name
    schedule
  }
}

You can find flow group id in the details panel for you your flow

kevin701: Hey <@U012CK03GBA>, did you try toggling the schedule off and on?

pedro: Hi Kevin. I found the issue. When I toggled the schedule on an off from the flow page, I saw an brief error message at the bottom of the screen saying I was missing a required parameter in the schedule. I added this and toggled off/on and I now see the scheduled flows.

I believe the schedule UI is missing some validation at the time the schedule is created. Also, when you try to edit the schedule, it does not preserve the previously entered schedule values so you have to reset that every time.

kevin701: <@ULVA73B9P> open “Validate that Scheduled have Required Parameters” in UI

Original thread can be found here.

marvin-robot avatar Jul 27 '21 16:07 marvin-robot

The warning for required params does come through when the schedule is toggled but the UI could also check at schedule creation. You can see an example for checking for required parameters in the quick run button in flow>actions

zhen0 avatar Oct 12 '21 19:10 zhen0