Replies: 2 comments 1 reply
-
I am almost positive this is due to futureverse/furrr#265. For a Anyway, I recommend |
Beta Was this translation helpful? Give feedback.
1 reply
-
Turns out I can fix this on |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Help
Description
Apologies, if this is obvious but I kept my head banging against the desk before figuring it out, so I thought it might be useful for others.
I have a pipeline which started its life as a fairly simple one, with no need for parallel execution. As the project evolved, I added some targets which could benefit from parallelism. While setting things up for local workers for
tar_make_future()
, I noticed targets using RNGs changing their output. See this reprex:Note that both runs use the same seeds!
If the problematic target is set to run in the main pipeline, we get back the old results. I eventually ended up with
tar_option_set(deployment = "main")
for the whole project as for most of my targets are it doesn’t make much sense to run in a separate worker.What is the explanation though? Seed are the same but the state is different between runs. Does setting up a future worker use RNGs?
Anyways, hopefully this little example can help someone who is just as confused as I was.
Created on 2023-10-04 with reprex v2.0.2
Session info
Beta Was this translation helpful? Give feedback.
All reactions