made tasks type supporting a string or a list of strings
This commit is contained in:
parent
66ac870088
commit
e5b0c9b414
1 changed files with 1 additions and 1 deletions
|
|
@ -100,7 +100,7 @@ class Job:
|
||||||
def handle_tasks(self, job_information):
|
def handle_tasks(self, job_information):
|
||||||
for member in self.members:
|
for member in self.members:
|
||||||
for task in member.get_tasks():
|
for task in member.get_tasks():
|
||||||
if self.status.lower() == task.get_task_type().lower():
|
if self.status.lower() in task.get_task_type().lower():
|
||||||
logger.debug("Executing Task of type: " + self.status)
|
logger.debug("Executing Task of type: " + self.status)
|
||||||
TaskExecutor.Instance().schedule_task(job_information, task)
|
TaskExecutor.Instance().schedule_task(job_information, task)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue