Ha Pham
08/18/2022, 10:09 AMstart_date
parameter. In the flow code the default of this value is set like this
def sync_circleci(start_date: datetime.date = datetime.datetime.today().date()):
...
and it will come out in the YYYY-MM-DD format. Now when I deploy the flow, it seems that the default value is not recognized by Prefect UI. When I run this flow "using default param values", the flow fails with this error
prefect.exceptions.SignatureMismatchError: Function expects parameters ['start_date'] but was provided with parameters []
which means the default value is not recognized (?).
And when I select a date value using the date picker, looks like the date format is not recognized by my flow code with this error
- start_date: invalid date format
How should I handle this?Anna Geller
08/18/2022, 11:53 AMJenny
08/18/2022, 2:03 PMHa Pham
08/18/2022, 2:29 PMAnna Geller
08/18/2022, 3:12 PMHa Pham
08/19/2022, 5:43 AMdef sync_circleci(start_date: datetime.datetime = datetime.datetime.now(pytz.utc)):
However it still does not recognize the default valueJenny
08/19/2022, 7:41 AMHa Pham
08/19/2022, 7:42 AMJenny
08/19/2022, 7:42 AM