Does anyone have any tips working with a random number generator in prefect. I want my tasks to be able to recreate the result and also make sure they don’t get the same value when concurrency is involved.
One of the things I though about is generating a set of random numbers based on a seed and passing them along to specific tasks. That way concurrency isn’t an issue. Just feel it’s not a very elegant solution. I though about putting the RNG in the context but then concurrency might be an issue
07/14/2022, 6:28 PM
how would you solve it in Python?
07/19/2022, 4:03 PM
Probably the same way 😅 Just thinking about those extra tiny tasks that all they do is create a seed so I can map it forward
07/19/2022, 11:20 PM
tbh I don't know the answer here, super use case dependent