EDG_WLL_QUERY_ATTR_PARENT, /**< Job was resubmitted */
EDG_WLL_QUERY_ATTR_EXITCODE, /**< Unix exit code */
EDG_WLL_QUERY_ATTR_JDL_ATTR, /**< Arbitrary JDL attribute */
+ EDG_WLL_QUERY_ATTR_LASTUPDATETIME, /**< Time of the last known event of the job */
EDG_WLL_QUERY_ATTR__LAST
/* if adding new attribute, add conversion string to common/xml_conversions.c too !! */
} edg_wll_QueryAttr;
JobIndices = {
[ type = "system"; name = "owner" ],
[ type = "system"; name = "location" ],
- [ type = "system"; name = "destination" ]
+ [ type = "system"; name = "destination" ],
+ [ type = "system"; name = "lastUpdateTime" ]
}
]
return "varchar(255) binary null";
case EDG_WLL_QUERY_ATTR_TIME:
+ case EDG_WLL_QUERY_ATTR_LASTUPDATETIME:
return "datetime null";
default:
return NULL;
case EDG_WLL_QUERY_ATTR_RESUBMITTED:
asprintf(&data, "%d", stat->pub.resubmitted);
break;
+ case EDG_WLL_QUERY_ATTR_LASTUPDATETIME:
+ data = strdup(edg_wll_TimeToDB(stat->pub.lastUpdateTime.tv_sec));
+ printf("lastupdatedb: %s\n", data);
+ break;
/* XXX add more attributes when defined */
default:
timeval stateEnterTime When entered this status
timeval lastUpdateTime Last known event of the job
+_index_
intlist stateEnterTimes When all previous states were entered
_special_ XMLstructured