ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CRAB/python/DBinterface.py
(Generate patch)

Comparing COMP/CRAB/python/DBinterface.py (file contents):
Revision 1.21 by farinafa, Tue Apr 29 15:20:48 2008 UTC vs.
Revision 1.22 by spiga, Tue May 6 14:15:41 2008 UTC

# Line 299 | Line 299 | class DBinterface:
299              matched.append(i.runningJob[field])
300          return matched
301  
302 +    def newRunJobs(self,nj='all'):
303 +        """
304 +        Get new running instances
305 +        """  
306 +        task = self.getTask(nj)
307 +
308 +        for job in task.jobs:
309 +            if job.runningJob is not None :
310 +                job.runningJob["closed"] = "Y"
311 +
312 +        common.bossSession.updateDB(task)
313 +
314 +        for job in task.jobs:
315 +            job.runningJob = None
316 +            common.bossSession.getRunningInstance(job)
317 +        return        
318 +
319      def deserXmlStatus(self, reportList):
320  
321          task = self.getTask()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines