JobAnalyzer is a class for analyzing the jobs of a given task.
Definition at line 674 of file TaskManager.py.
◆ __init__()
def python.TaskManager.JobAnalyzer.__init__ |
( |
|
self, |
|
|
|
jobDir, |
|
|
|
dsName, |
|
|
|
taskName |
|
) |
| |
Definition at line 677 of file TaskManager.py.
677 def __init__(self,jobDir,dsName,taskName):
680 self.taskName = taskName
681 self.path = jobDir+
'/'+dsName+
'/'+taskName
◆ jobList()
def python.TaskManager.JobAnalyzer.jobList |
( |
|
self | ) |
|
◆ jobStatus()
def python.TaskManager.JobAnalyzer.jobStatus |
( |
|
self, |
|
|
|
jobName |
|
) |
| |
Definition at line 693 of file TaskManager.py.
693 def jobStatus(self,jobName):
694 status = TaskManager.StatusCodes[
'UNKNOWN']
696 p = self.path+
'/'+jobName
697 if os.path.exists(p):
698 if glob.glob(p+
'/*.config.py'):
699 status = TaskManager.StatusCodes[
'CONFIGURED']
700 if glob.glob(p+
'/*.SUBMITTED'):
701 status = TaskManager.StatusCodes[
'SUBMITTED']
709 if glob.glob(p+
'/*.RUNNING'):
710 status = TaskManager.StatusCodes[
'RUNNING']
711 if glob.glob(p+
'/*.POSTPROCESSING'):
712 status = TaskManager.StatusCodes[
'POSTPROCESSING']
713 if glob.glob(p+
'/*.COMPLETED'):
714 status = TaskManager.StatusCodes[
'COMPLETED']
716 if len(glob.glob(p+
'/*.exit.0'))==0:
717 status = TaskManager.StatusCodes[
'FAILED']
719 exitcode =
open(glob.glob(p+
'/*.exitstatus.dat')[0]).
read()
722 if len(glob.glob(p+
'/*.exit.*'))>len(glob.glob(p+
'/*.exit.0')):
723 status = TaskManager.StatusCodes[
'FAILED']
724 return (status,exitcode)
◆ dsName
python.TaskManager.JobAnalyzer.dsName |
◆ jobDir
python.TaskManager.JobAnalyzer.jobDir |
◆ path
python.TaskManager.JobAnalyzer.path |
◆ taskName
python.TaskManager.JobAnalyzer.taskName |
The documentation for this class was generated from the following file: