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

Comparing COMP/CRAB/python/Killer.py (file contents):
Revision 1.7 by spiga, Sat May 10 13:56:23 2008 UTC vs.
Revision 1.11 by spiga, Mon Aug 18 11:03:41 2008 UTC

# Line 16 | Line 16 | class Killer(Actor):
16          task = common._db.getTask(self.range)
17          toBeKilled = []
18          for job  in task.jobs:
19 <           # if id not in  common._db.nJobs("list"):
20 <           #     common.logger.message("Warning: job # "+str(id)+" doesn't exists! Not possible to kill it.")
21 <           # else:
22 <           if ( job.runningJob['status'] in ['SS','R','S']):
19 >           if ( job.runningJob['status'] in ['SU','SS','R','S','SR','SW']):
20                 toBeKilled.append(job['jobId'])
21             else:
22 <               common.logger.message("Not possible to kill Job #"+str(job['jobId'])+" : Status is "+str(job.runningJob['schedulerStatus']))
22 >               common.logger.message("Not possible to kill Job #"+str(job['jobId'])+" : Status is "+str(job.runningJob['statusScheduler']))
23             pass
24  
25          if len(toBeKilled)>0:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines