Fix one regression on more_tasks #1981

This commit is contained in:
Thomas Nagy 2017-06-08 14:27:56 +02:00
parent 758d520e90
commit 3e1e6586e5
1 changed files with 2 additions and 0 deletions

View File

@ -217,6 +217,8 @@ class Parallel(object):
try:
if tsk.prio >= self.outstanding[0].prio:
self.outstanding.appendleft(tsk)
else:
self.outstanding.append(tsk)
except AttributeError:
self.outstanding.appendleft(tsk)
else: