[gold-users] Re: bug in goldsh

Scott Jackson scott at clusterresources.com
Mon Mar 12 10:23:50 MDT 2007

Kevin, there are a few fields which Gold stores for ALL objects which
are normally hidden. These include CreationTime and ModificationTime. In
this case, CreationTime should correspond to when the job started
(unless you have a job filter which invokes gquote in which case
CreationTime will correspond to the submit date), and ModificationTime
should correspond to when the job ended (assuming a final charge has
occurred). So, you should be able to get what you want that way --

gold> Job Query Show:=JobId,User ModificationTime>="2007-03-08 14:38:50"
JobId User 
----- ---- 
100   amy  

This CAN actually be done via glsjob in the following way:

[scottmo at keko gold-dev]$ glsjob --show="JobId,User" --where
name=ModificationTime value="2007-03-08 14:38:50" op="GE"
JobId User 
----- ---- 
100   amy  

I hope this helps,


On Thu, 2007-03-08 at 18:02 -0500, Kevin Van Workum wrote:
> Scott,
> I suspected something like that was probably the culprit. If that is
> the intended behavior, then I have no desire to change it. Thanks for
> looking into it.
> What I was really wanted to do is get a list of all my jobs in a
> particular time frame, showing the WallDuration of each job.  glsjob
> doesn't work because the StartTime and EndTime attributes of all my
> jobs are empty. glstxn doesn't work either because WallDuration is not
> an attribute of a Transaction. I just realized right now that the Name
> attribute of a Transaction with Object==Job and Action==Charge  is the
> gold_job_id of the job. So I can use glstxn to get the first and last
> gold_job_id and then use glsjob to get my list of Jobs. 
> Or maybe I can just use CreationTime as the discriminator in the Job
> Query, like this:
> gold> Job Query User==vanw CreationTime>=2007-02-21
> CreationTime<=2007-02-21

More information about the gold-users mailing list