Robert
09/06/2024, 8:57 PMdatetime
, and while setting it to a default datetime in the code causes it to populate correctly, attempting to run the flow results in the error:
'2024-09-06T00:00:00' is not a 'date-time'
If I click on the parameter and don't change anything but hit Apply
it clears the error.Marvin
09/06/2024, 8:57 PMRobert
09/06/2024, 8:57 PMNate
09/06/2024, 9:08 PMMarvin
09/06/2024, 9:08 PMNate
09/06/2024, 9:08 PMRobert
09/06/2024, 9:12 PMend_datetime: datetime = datetime.now().replace(hour=0, minute=0, second=0, microsecond=0),
Nate
09/06/2024, 9:23 PMRobert
09/06/2024, 9:41 PMNate
09/06/2024, 9:42 PMRobert
09/06/2024, 9:42 PMRobert
09/06/2024, 9:46 PMRobert
09/06/2024, 9:46 PMNate
09/06/2024, 9:50 PMfrom datetime import datetime
from prefect import flow
@flow(log_prints=True)
def repro(
t: datetime = datetime.now().replace(hour=0, minute=0, second=0, microsecond=0),
):
print(t)
if __name__ == "__main__":
repro.serve(name="repro")
so i'd guess there's something else going onRobert
09/06/2024, 9:52 PMNate
09/06/2024, 9:52 PM