parent job added among know_attrs
authorMiloš Mulač <mulac@civ.zcu.cz>
Tue, 29 Aug 2006 11:21:33 +0000 (11:21 +0000)
committerMiloš Mulač <mulac@civ.zcu.cz>
Tue, 29 Aug 2006 11:21:33 +0000 (11:21 +0000)
org.glite.lb.server/interface/job-attrs.xsd
org.glite.lb.server/src/lb_plugin.c

index 2d5cf9e..b5c5915 100644 (file)
@@ -64,6 +64,9 @@
                <xs:documentation>Job owner according to LB</xs:documentation>
        </xs:element>
 
+       <!-- Parent jobId of DAG -->
+       <xs:element name="parent" type="xs:string" />
+
        <!-- the following 6 elements have to be retrieved from JDL -->
        <xs:element name="VO" type="xs:string" />
        <xs:element name="aTag" type="xs:string" />
index cad22ed..b98f706 100644 (file)
@@ -250,6 +250,12 @@ static int lb_query(void *fpctx,void *handle,const char *attr,glite_jp_attrval_t
                av[0].value = edg_wlc_JobIdUnparse(h->status.jobId);
                av[0].size = -1;
                av[0].timestamp = h->status.lastUpdateTime.tv_sec;
+       } else if (strcmp(attr, GLITE_JP_LB_parent) == 0) {
+               av = calloc(2, sizeof(glite_jp_attrval_t));
+               av[0].name = strdup(attr);
+               av[0].value = edg_wlc_JobIdUnparse(h->status.parent_job);
+               av[0].size = -1;
+               av[0].timestamp = h->status.lastUpdateTime.tv_sec;
        } else if (strcmp(attr, GLITE_JP_LB_VO) == 0) {
                av = calloc(2, sizeof(glite_jp_attrval_t));
                av[0].name = strdup(attr);