Skip to content

Commit bf50bc1

Browse files
tweak [ci skip]
1 parent 36116fb commit bf50bc1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/BatchtoolsFuture-class.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,12 +580,12 @@ await <- function(future, cleanup = TRUE,
580580
if (inherits(result, "FutureResult")) {
581581
prototype_fields <- c(prototype_fields, "batchtools_log")
582582
result[["batchtools_log"]] <- try({
583+
mdebug("- batchtools::getLog() ...")
584+
on.exit(mdebug("- batchtools::getLog() ... done"))
583585
## Since we're already collected the results, the log file
584586
## should already exist, if it exists. Because of this,
585587
## only poll for the log file for a second before giving up.
586588
reg$cluster.functions$fs.latency <- 1.0
587-
mdebug("- batchtools::getLog() ...")
588-
on.exit(mdebug("- batchtools::getLog() ... done"))
589589
getLog(id = jobid, reg = reg)
590590
}, silent = TRUE)
591591
if (result_has_errors(result)) cleanup <- FALSE

0 commit comments

Comments
 (0)