Support EXECQUEONLY in pbs_statjob() -garrick
git-svn-id: svn://opensvn.adaptivecomputing.com/maui/trunk@45 3f5042e3-fb1d-0410-be18-d6ca2573e517
This commit is contained in:
parent
f7d620d527
commit
8a88b0922b
@ -587,8 +587,13 @@ int MPBSWorkloadQuery(
|
||||
if (JCount != NULL)
|
||||
*JCount = 0;
|
||||
|
||||
/* torque-2.0.0p1 and up can limit pbs_statjob() to only return executable jobs */
|
||||
#ifndef EXECQUEONLY
|
||||
#define EXECQUEONLY NULL
|
||||
#endif
|
||||
|
||||
if ((MSim.RMFailureTime >= MSched.Time) ||
|
||||
(jobs = pbs_statjob(R->U.PBS.ServerSD,NULL,NULL,NULL)) == NULL)
|
||||
(jobs = pbs_statjob(R->U.PBS.ServerSD,NULL,NULL,EXECQUEONLY)) == NULL)
|
||||
{
|
||||
if (MSim.RMFailureTime < MSched.Time)
|
||||
ErrMsg = pbs_geterrmsg(R->U.PBS.ServerSD);
|
||||
|
Loading…
Reference in New Issue
Block a user