I'm getting an error attempting to schedule a flow...
# prefect-community
j
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
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
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
I think that might be a required parameter that isn’t filled then if the schedule is this basic?
j
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
Do you have a default that is not JSONSerializable?
j
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