Fix a bug of jobmgr
This commit is contained in:
parent
329761d671
commit
8ef456b246
|
@ -62,7 +62,7 @@ class BatchJob(object):
|
||||||
task_name = self.user + '_' + self.job_id + '_' + task_idx
|
task_name = self.user + '_' + self.job_id + '_' + task_idx
|
||||||
return task_name, self.raw_job_info["tasks"][task_idx]
|
return task_name, self.raw_job_info["tasks"][task_idx]
|
||||||
return '', None
|
return '', None
|
||||||
|
|
||||||
# a task has finished
|
# a task has finished
|
||||||
def finish_task(self, task_idx):
|
def finish_task(self, task_idx):
|
||||||
pass
|
pass
|
||||||
|
@ -137,7 +137,7 @@ class JobMgr(threading.Thread):
|
||||||
if not task_info:
|
if not task_info:
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
task_priority = self.job_priority
|
task_priority = job.job_priority
|
||||||
self.taskmgr.add_task(job.user, task_name, task_info, task_priority)
|
self.taskmgr.add_task(job.user, task_name, task_info, task_priority)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
@ -155,4 +155,3 @@ class JobMgr(threading.Thread):
|
||||||
# a task has finished
|
# a task has finished
|
||||||
def report(self, task):
|
def report(self, task):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue