calm-energy-71162
02/14/2023, 3:19 PMParameter of that flow that has a default will be evaluated at deploy time (not execution time) and all the runs for that step function will have the same value for that parameter.
For example, if I have a parameter:
datetime_run = Parameter(
"datetime_run",
default=datetime.now()
)
For all runs of that step function this parameter will have the same value (the time of when the step function was deployed, not the time it was executed). Correct?square-wire-39606
02/14/2023, 4:15 PMcalm-energy-71162
02/14/2023, 4:34 PMcalm-energy-71162
02/14/2023, 4:39 PMyou can compute the value within the start step.I guess in this scenario there is no way around having two attributes with different names as I cannot overwrite the Parameters? I am talking about a pattern like this:
par_name_cli = Parameter(
"par_name_cli",
type=int,
)
# in start step
self.par_name = self.par_name_cli if self.par_name_cli else computed_defaultancient-application-36103
02/14/2023, 4:56 PM