PecanProject / pecan

The Predictive Ecosystem Analyzer (PEcAn) is an integrated ecological bioinformatics toolbox.
www.pecanproject.org
Other
202 stars 234 forks source link

Copy all run and out dirs at once, not in for-loop #3025

Closed Aariq closed 1 year ago

Aariq commented 2 years ago

Addresses #3019 with changes to start_model_runs()

Description

There aren't any tests for start_model_runs() and I'm not sure how to write them, but I did install this PR and test it with my own setup.

Motivation and Context

Review Time Estimate

Types of changes

Checklist:

Aariq commented 1 year ago

Ok, seems to be working consistently now. Running two remote commands in a row seemed to be causing problems, but a 1 second pause seems to fix it. 🤷‍♂️

Aariq commented 1 year ago

Now that I've been using this for a while I've noticed that it still fails to copy over all the run/ files sometimes despite rsync reporting "success". This definitely works better than it did previously, but I can also continue to try to figure this out.

Aariq commented 1 year ago

Marked as draft again because I'm getting close (hopefully) to really fixing this.

Aariq commented 1 year ago

Ok, the remaining bug has nothing to do with PEcAn or with R for that matter. I've been able to reproduce it with just rsync. It also seems to be specific to our server as I can't reproduce it from my laptop. Going to open this back up for review. One possible safeguard is to wrap the remote.copy.to commands in PEcAn.utils::retry.func() but I'll wait to get feedback before doing this.

mdietze commented 1 year ago

@robkooper could you look at the changes you requested so we can figure out whether this is ready to pull?