mirror of
https://github.com/YosysHQ/sby.git
synced 2025-04-05 22:14:08 +00:00
Fix fix for chained tasks
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
parent
162bdc9a3b
commit
35d956c7bb
|
@ -38,14 +38,14 @@ class SbyTask:
|
||||||
self.linebuffer = ""
|
self.linebuffer = ""
|
||||||
self.logstderr = logstderr
|
self.logstderr = logstderr
|
||||||
|
|
||||||
|
self.job.tasks_pending.append(self)
|
||||||
|
|
||||||
for dep in self.deps:
|
for dep in self.deps:
|
||||||
dep.register_dep(self)
|
dep.register_dep(self)
|
||||||
|
|
||||||
self.output_callback = None
|
self.output_callback = None
|
||||||
self.exit_callback = None
|
self.exit_callback = None
|
||||||
|
|
||||||
self.job.tasks_pending.append(self)
|
|
||||||
|
|
||||||
def register_dep(self, next_task):
|
def register_dep(self, next_task):
|
||||||
if self.finished:
|
if self.finished:
|
||||||
next_task.poll()
|
next_task.poll()
|
||||||
|
@ -179,7 +179,7 @@ class SbyJob:
|
||||||
for task in self.tasks_pending:
|
for task in self.tasks_pending:
|
||||||
task.poll()
|
task.poll()
|
||||||
|
|
||||||
while len(self.tasks_running) or len(self.tasks_pending):
|
while len(self.tasks_running):
|
||||||
fds = []
|
fds = []
|
||||||
for task in self.tasks_running:
|
for task in self.tasks_running:
|
||||||
if task.running:
|
if task.running:
|
||||||
|
|
Loading…
Reference in a new issue