Process a given task group exactly one

This commit is contained in:
Thomas Nagy 2017-02-20 19:01:33 +01:00
parent 63a53064a3
commit 8560c18ccb
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA
2 changed files with 7 additions and 3 deletions

View File

@ -443,9 +443,12 @@ class Parallel(object):
for x in tasks:
for k in x.run_after:
if isinstance(k, Task.TaskGroup):
for j in k.a:
# use the group!
reverse[j].add(k)
if k.done:
pass
else:
k.done = True
for j in k.a:
reverse[j].add(k)
else:
reverse[k].add(x)

View File

@ -890,6 +890,7 @@ class TaskGroup(object):
def __init__(self, a, b):
self.a = a
self.b = b
self.done = False
def get_hasrun(self):
if not self.a: