Skip to content

Commit d6c4a6d

Browse files
Update 'submitted' state in more cases
1 parent 6c9fb97 commit d6c4a6d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

R/BatchtoolsFutureBackend-class.R

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -598,10 +598,9 @@ finished <- function(future, ...) {
598598
status <- status(future)
599599
if (is_na(status)) return(NA)
600600
if (any(c("finished", "error", "expired") %in% status)) {
601+
future[["state"]] <- "finished"
601602
return(TRUE)
602-
}
603-
604-
if (future[["state"]] == "submitted" && "started" %in% status) {
603+
} else if (future[["state"]] == "submitted" && "started" %in% status) {
605604
future[["state"]] <- "running"
606605
}
607606

0 commit comments

Comments
 (0)