From: František Dvořák Date: Wed, 7 Apr 2010 13:16:22 +0000 (+0000) Subject: Gather changed JDL from submitted states too (for CREAM jobs). X-Git-Tag: glite-lb-client-java_R_1_0_2_1~17 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=1b65f6fda75a6ecd5fc511b343d30abd8fd2eea0;p=jra1mw.git Gather changed JDL from submitted states too (for CREAM jobs). --- diff --git a/org.glite.lb.harvester/src/harvester.c b/org.glite.lb.harvester/src/harvester.c index 8944a18..14901d5 100644 --- a/org.glite.lb.harvester/src/harvester.c +++ b/org.glite.lb.harvester/src/harvester.c @@ -1627,7 +1627,7 @@ void *notify_thread(void *thread_data) { struct timeval to; edg_wll_JobStat jobstat, *jobstates; notif_t *notif, *notif_jdl; - edg_wll_QueryRec *conditions[3] = { NULL, NULL, NULL }, condition[2], condition2[2]; + edg_wll_QueryRec *conditions[3] = { NULL, NULL, NULL }, condition[3], condition2[2]; int sock = -1, updated = 0, error = 0, received = 0; thread_t *t = (thread_t *)thread_data; edg_wll_Context ctx = NULL; @@ -1776,6 +1776,9 @@ void *notify_thread(void *thread_data) { condition[0].attr = EDG_WLL_QUERY_ATTR_STATUS; condition[0].op = EDG_WLL_QUERY_OP_EQUAL; condition[0].value.i = EDG_WLL_JOB_WAITING; + condition[1].attr = EDG_WLL_QUERY_ATTR_STATUS; + condition[1].op = EDG_WLL_QUERY_OP_EQUAL; + condition[1].value.i = EDG_WLL_JOB_SUBMITTED; condition2[0].attr = EDG_WLL_QUERY_ATTR_JDL_ATTR; condition2[0].op = EDG_WLL_QUERY_OP_CHANGED; flags = EDG_WLL_STAT_CLASSADS;