Jelle Vegter
08/23/2021, 1:05 PMWilson Bilkovich
08/23/2021, 1:15 PMKevin Kho
time = Parameter("time", default=datetime.datetime.now())
. Prefect serializes your Flow so this value is evaluated during registration. You have two options. The first is storing you Flow as a script. See this . The second is deferring the evaluation of datetime.datetime.now()
to a task. So you can do time = Parameter("time", default="now")
, and then have a task that returns datetime.datetime.now()
is the value is “now”Jelle Vegter
08/23/2021, 2:22 PM