Get progress updates when using batchtools_slurm
backend
#659
Unanswered
frederikziebell
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I recently came across this discussion, where @HenrikBengtsson explained that no
future.batchtools
backends are capable of progressr updates. Is there another way of getting progress updates? I came up with the following script that kind of works. The idea is to write one line per, say 10, iterations into a file and compute progress from the number of lines in the file:test.R
which is called via
test.sh
The only issue is that the
slurm.progress
file stops at around 70%, potentially because there are some issues with many workers trying to write to the same file simultaneously in combination with some file-system caching. Can this method be improved? My only idea is to create a progress folder with one file per progress report and then compute progress from the number of files, but this is not very clearn.Edit: I also found out that the way I compute the ETA assumes that the clocks of all the workers are synchronized, which might not be the case. Is there a way around this, e.g. by letting the parallel workers ask the master process for it's time after work has been done?
Beta Was this translation helpful? Give feedback.
All reactions