Thread
#prefect-community
    j

    Jason

    4 months ago
    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
    Kevin Kho

    Kevin Kho

    4 months ago
    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

    4 months ago
    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
    Kevin Kho

    Kevin Kho

    4 months ago
    I think that might be a required parameter that isn’t filled then if the schedule is this basic?
    j

    Jason

    4 months ago
    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
    Kevin Kho

    Kevin Kho

    4 months ago
    Do you have a default that is not JSONSerializable?
    j

    Jason

    4 months ago
    3 defaults are iso8601 strings
    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