Skip to content

Commit

Permalink
Fix the problem where checking qsub status.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yinghao Sun committed Oct 2, 2024
1 parent 08998d2 commit fc7fd71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/remote/R/check_qsub_status.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ qsub_run_finished <- function(run, host, qstat) {
out <- remote.execute.cmd(host = host, cmd = check, stderr = TRUE)
}

if (length(out) > 0 && substring(out, nchar(out) - 3) == "DONE") {
if (length(out) > 0 && all(substring(out, nchar(out) - 3) == "DONE")) {
PEcAn.logger::logger.debug("Job", run, "for run", run_id_string, "finished")
return(TRUE)
} else {
Expand Down

0 comments on commit fc7fd71

Please sign in to comment.