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

Jason

05/10/2022, 2:37 PM
I'm getting an error attempting to schedule a flow. The "Schedule" toggle, in this case, is on and was turned on without error. The GraphQL error only pops up after submitting the schedule
It seems to be related to the Cron clock that the UI submits when I say once per day
k

Kevin Kho

05/10/2022, 2:38 PM
This looks like that cron syntax might be unsupported. Can you try without the slash to see if the other stuff is fine to schedule?
j

Jason

05/10/2022, 2:41 PM
That's what's interesting... I'm not using the Advanced setting - this is from the base UI.
Same - toggling Schedule to On doesn't stick
k

Kevin Kho

05/10/2022, 2:54 PM
I think that might be a required parameter that isn’t filled then if the schedule is this basic?
j

Jason

05/10/2022, 3:34 PM
Hmm.. They all have defaults set in the code, and all accept Nonetype. I can try adding None explicitly in parameters and we'll see what that does
k

Kevin Kho

05/10/2022, 3:59 PM
Do you have a default that is not JSONSerializable?
j

Jason

05/10/2022, 6:12 PM
3 defaults are iso8601 strings
Copy code
reservations_config = ReservationsConfig(
        modified_since=Parameter(
            "modified_since", default=pendulum.yesterday().to_date_string()
        ),
        arriving_on=Parameter("arriving_on", default=None),
        arriving_after=Parameter("arriving_after", default=beginning_of_last_year),
    )
@Kevin Kho I've tried setting all the dates and such - the issue is, with the image above, submitting the schedule doesn't work because it doesn't recognize that the schedule button is already blue
26 Views