Commit 59958c65 authored by Marko Kollo's avatar Marko Kollo
Browse files

Fixed massive bool error, shouldn't have been like this.

parent ea6b7b02
......@@ -170,7 +170,7 @@ class MLPTaskAdapter(object):
self.tasks = [task for task in self.tasks if task["task"] not in self.finished_task_ids and task["task"] not in self.failed_task_ids]
self.tasks = [task for task in self.tasks if task["retry_count"] < MLPTaskAdapter.MAX_TASK_RETRY_COUNT]
if not self.tasks: # Avoid waiting without reason if the next batch is up.
if self.tasks: # Avoid waiting without reason if the next batch is up.
sleep(5) # Wait a small amount of time until checking wheter the task has finished.
return self.analyzation_data, self.errors
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment