[rhmessaging-commits] rhmessaging commits: r2426 - mgmt/trunk/cumin/python/cumin.
rhmessaging-commits at lists.jboss.org
rhmessaging-commits at lists.jboss.org
Fri Sep 5 16:55:04 EDT 2008
Author: eallen
Date: 2008-09-05 16:55:03 -0400 (Fri, 05 Sep 2008)
New Revision: 2426
Modified:
mgmt/trunk/cumin/python/cumin/model.py
Log:
Added some guesses at some Ad properties
Modified: mgmt/trunk/cumin/python/cumin/model.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/model.py 2008-09-05 20:53:56 UTC (rev 2425)
+++ mgmt/trunk/cumin/python/cumin/model.py 2008-09-05 20:55:03 UTC (rev 2426)
@@ -105,7 +105,7 @@
return self.app.main_page.show_main(session)
class AdProperty(object):
- groups = ["Main", "Condor Info", "Command Info", "Other"]
+ groups = ["Main", "Command Info", "Job Status Info", "Condor Info", "Other"]
def __init__(self, cls, name):
self.cumin_model = cls.cumin_model
@@ -1476,13 +1476,8 @@
super(CuminJob, self).__init__(model, "job", Job, JobStats)
### Main Group
- prop = self.JobStatusProperty(self, "JobStatus")
- prop.description = "The current job status"
- prop.renderer = prop.render_status
- prop.title = "Job Status"
- prop.writable = False
-
prop = AdProperty(self, "Owner")
+ prop.description = "The submitter of the job"
prop.writable = False
prop = AdProperty(self, "BufferBlockSize")
@@ -1508,7 +1503,7 @@
prop.title = "Command"
prop = AdProperty(self, "In")
- prop.description = "Command Input"
+ prop.description = "The file where the job's standard input is read"
prop.group = "Command Info"
prop = AdProperty(self, "Iwd")
@@ -1517,10 +1512,48 @@
prop.title = "Working Directory"
prop = AdProperty(self, "Out")
- prop.description = "Where the output will be stored"
+ prop.description = "The file where the job's standard output is written"
prop.example = "'/dev/null' or '~/logs/'"
prop.group = "Command Info"
+ ######## Job Status Info
+ prop = self.JobStatusProperty(self, "JobStatus")
+ prop.description = "The current job status"
+ prop.group = "Job Status Info"
+ prop.renderer = prop.render_status
+ prop.title = "Job Status"
+ prop.writable = False
+
+ prop = AdProperty(self, "HoldReasonCode")
+ prop.group = "Job Status Info"
+ prop.title = "Hold Reason Code"
+ prop.writable = False
+
+ prop = AdProperty(self, "ExitStatus")
+ prop.description = "Status when job completes"
+ prop.group = "Job Status Info"
+ prop.title = "Exit Status"
+ prop.writable = False
+
+ prop = AdProperty(self, "ProcId")
+ prop.description = "The id of the job within its cluster. Proc Ids are unique within a cluster."
+ prop.group = "Job Status Info"
+ prop.title = "Proc Id"
+ prop.writable = False
+
+ ######## Other
+ prop = AdProperty(self, "ClusterId")
+ prop.description = "The id of the cluster the job belongs to"
+ prop.group = "Other"
+ prop.title = "Cluster ID"
+ prop.writable = False
+
+ prop = AdProperty(self, "QDate")
+ prop.description = "The number of nanoseconds since epoch when the job was submitted"
+ prop.group = "Other"
+ prop.title = "QDate"
+ prop.writable = False
+
######## Properties
prop = CuminProperty(self, "AccountingGroup")
prop.summary = True
More information about the rhmessaging-commits
mailing list