From 6cf129f4e25e75bedc1530fd04f01ff29d713eb5 Mon Sep 17 00:00:00 2001 From: gstaples Date: Sat, 5 Nov 2005 02:42:08 +0000 Subject: [PATCH] Be more permissive about EXECQUEONLY -garrick git-svn-id: svn://opensvn.adaptivecomputing.com/maui/trunk@46 3f5042e3-fb1d-0410-be18-d6ca2573e517 --- src/moab/MPBSI.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/moab/MPBSI.c b/src/moab/MPBSI.c index 565fd9c..6939158 100644 --- a/src/moab/MPBSI.c +++ b/src/moab/MPBSI.c @@ -587,13 +587,8 @@ 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,EXECQUEONLY)) == NULL) + (jobs = pbs_statjob(R->U.PBS.ServerSD,NULL,NULL,"exec_queue_only")) == NULL) { if (MSim.RMFailureTime < MSched.Time) ErrMsg = pbs_geterrmsg(R->U.PBS.ServerSD); @@ -630,6 +625,10 @@ int MPBSWorkloadQuery( for (cur_job = jobs;cur_job != NULL;cur_job = cur_job->next) { + +/* torque-2.0.0p1 and up can limit pbs_statjob() to only return executable jobs */ +#ifndef EXECQUEONLY + /* ignore jobs that are in route queues */ if (__MPBSJobChkExecutable(cur_job) == FAILURE) @@ -639,6 +638,7 @@ int MPBSWorkloadQuery( continue; } +#endif if (JCount != NULL) (*JCount)++;