override JDL with EnQueued/OK event coming from WMProxy. Looks like
authorAleš Křenek <ljocha@ics.muni.cz>
Wed, 30 Jul 2008 15:31:39 +0000 (15:31 +0000)
committerAleš Křenek <ljocha@ics.muni.cz>
Wed, 30 Jul 2008 15:31:39 +0000 (15:31 +0000)
gLite 3.1 WMS puts there the full value, unlike RegJob event, where only
filename is provided

org.glite.lb.state-machine/src/process_event.c

index e9ffbdd..f4fb147 100644 (file)
@@ -479,7 +479,7 @@ static int processEvent_glite(intJobStat *js, edg_wll_Event *e, int ev_seq, int
                        if (USABLE_DATA(res, strict)) {
                                switch (e->enQueued.source) {
                                        case EDG_WLL_SOURCE_NETWORK_SERVER:
-                                               if (!js->pub.jdl) {
+                                               if (!js->pub.jdl || e->enQueued.result == EDG_WLL_ENQUEUED_OK) {
                                                        rep(js->pub.jdl, e->enQueued.job);
                                                }
                                                break;