From: Anthony Geay Date: Thu, 23 May 2024 11:24:18 +0000 (+0200) Subject: [EDF30235] : Update of PBS parametrization X-Git-Tag: emc2p_2.1.0-rc1^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=328232406e960a74b93e0cbccad3a341d50e9c19;p=tools%2Flibbatch.git [EDF30235] : Update of PBS parametrization --- diff --git a/src/PBS/BatchManager_PBS.cxx b/src/PBS/BatchManager_PBS.cxx index 7f193ee..88c1b24 100644 --- a/src/PBS/BatchManager_PBS.cxx +++ b/src/PBS/BatchManager_PBS.cxx @@ -114,7 +114,7 @@ namespace Batch { iss >> id; // define command to query batch - string subCommand = string("qstat -f ") + iss.str(); + string subCommand = string("qstat -f -x ") + iss.str(); string command = _protocol.getExecCommand(subCommand, _hostname, _username); LOG(command); diff --git a/src/PBS/JobInfo_PBS.cxx b/src/PBS/JobInfo_PBS.cxx index 309e7da..f06753c 100644 --- a/src/PBS/JobInfo_PBS.cxx +++ b/src/PBS/JobInfo_PBS.cxx @@ -64,7 +64,7 @@ namespace Batch { iss >> status; iss >> status; - if (status == "C") { // Completed + if (status == "F") { // Completed _param[STATE] = FINISHED; } else if (status == "E") { // Exiting _param[STATE] = RUNNING;