Hey all, what is the best practice for creating variables (i.e. date stamp) that you want to re-use across tasks? I can't just declare the variable as the date stamp doesn't update after the initial registry.
Hey @Jelle Vegter, if it’s not updating after initial registry, you likely did something like
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
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.