creaming cosmetics
authorMiloš Mulač <mulac@civ.zcu.cz>
Mon, 14 Sep 2009 13:27:32 +0000 (13:27 +0000)
committerMiloš Mulač <mulac@civ.zcu.cz>
Mon, 14 Sep 2009 13:27:32 +0000 (13:27 +0000)
org.glite.lb.client/examples/job_status.c
org.glite.lb.state-machine/src/process_event_cream.c
org.glite.lb.types/events.T

index 65ff093..b479af4 100644 (file)
@@ -332,7 +332,7 @@ static void printstat(edg_wll_JobStat stat, int level)
                printf("%scream_exit_code : %d\n", ind, stat.cream_exit_code);
                printf("%scream_cancelling : %d\n", ind, stat.cream_cancelling);
                printf("%scream_cpu_time : %d\n", ind, stat.cream_cpu_time);
-               printf("%scream_jw_status : %d\n", ind, stat.cream_jw_status);
+               printf("%scream_jw_status : %s\n", ind,  edg_wll_JWStatToString(stat.cream_jw_status));
 
                free(cream_stat_name);
        }
index b7d7274..34d3761 100644 (file)
@@ -94,9 +94,11 @@ int processEvent_Cream(intJobStat *js, edg_wll_Event *e, int ev_seq, int strict,
                        break;
                case EDG_WLL_EVENT_CREAMCALL:
                        if (USABLE(res)) {
-                               if (e->CREAMCall.callee == EDG_WLL_SOURCE_LRMS && e->any.source == EDG_WLL_SOURCE_LRMS)
+                               // BLAH -> LRMS
+                               if (e->any.source == EDG_WLL_SOURCE_BLAH && e->CREAMCall.callee == EDG_WLL_SOURCE_LRMS) {
                                        js->pub.state = EDG_WLL_JOB_SCHEDULED;
                                        js->pub.cream_state = EDG_WLL_STAT_IDLE;
+                               }
 
                        }
                        if (USABLE_DATA(res)) {
index 3673aac..6bd9cfc 100644 (file)
        _code_  FAILED
 
 @type CREAMCall        Processing command and calling BLAH or LRMS
-       logsrc  callee  
+       logsrc  callee          Called component        
        _ref_   CREAMStore:command
        string  cmdid           Id of the command, as stored previously
        _optional_