Function `do_OneSite` cannot check well what work remains to be done
Closed this issue · 1 comments
dschlaep commented
Currently, do_OneSite
gets an incomplete/unworked runID from dbWork
and will do all associated Pid/scenarios (except for a little testing for aggregations based on dbTempOut
-- which is not very helpful because most information is not available).
If there are many scenarios per runID and we have runIDs with partial output (e.g., because walltime is exceeded), then we currently redo all of the partial output and wast a lot of time.
Better: the function do_OneSite
has information on which scenario and which output table require output. In a much older version of the code this was checked but is currently not functional
#Check what needs to be done
#TODO this currently doesn't work in the database setup
isdone.overallAggs <- rep(FALSE, sim_scens[["N"]])
if (prj_todos[["adaily"]][["N"]] > 0) {
isdone.dailyAggs <- matrix(FALSE, nrow = prj_todos[["adaily"]][["N"]], ncol = sim_scens[["N"]])
} else {
isdone.dailyAggs <- TRUE
}