Aiden Price
09/21/2019, 11:32 PMParameter
? My actual use case is to have a dict which is a copy of one of my database tables which the incoming data needs to refer to to find its foreign key each time. If I find a new name that I don’t have in my dict I’ll need to update the table in the database and mutate my dictionary, then reference the mutated version in subsequent `flow.run()`s. I’m only new to Prefect but I have to say I love your work, thank you!Jeremiah
09/21/2019, 11:34 PMParameter
is probably the way to go. You can provide a different value for each run of the flow, and then work with it from other tasks.Aiden Price
09/21/2019, 11:37 PMJeremiah
09/21/2019, 11:38 PMcache
mechanism that could be useful here (it will cache a task until the cache is invalidated), but it requires some careful state managementParameter
might not do what you expect — if you change the value of the parameter, other tasks won’t pick it up. (They might if you’re working in a purely local context, but I wouldn’t count on it)Chris White
09/21/2019, 11:38 PMJeremiah
09/21/2019, 11:39 PMAiden Price
09/21/2019, 11:45 PMChris White
09/21/2019, 11:47 PMAiden Price
09/21/2019, 11:55 PM