fix interrupt()

can't interrupt with things to interrupt. this is technically duplicated
information but keeping parts of the code close to Trigger seems useful.
This commit is contained in:
eldritch horrors 2024-03-11 13:05:12 +01:00
parent 9933971ab0
commit 13a67b483a

View file

@ -71,6 +71,7 @@ class BuildTrigger(steps.BuildStep):
self._result_list = [] self._result_list = []
self.ended = False self.ended = False
self.waitForFinishDeferred = None self.waitForFinishDeferred = None
self.brids = []
self.description = f"building {len(jobs)} hydra jobs" self.description = f"building {len(jobs)} hydra jobs"
super().__init__(**kwargs) super().__init__(**kwargs)
@ -220,6 +221,7 @@ class BuildTrigger(steps.BuildStep):
url = getURLForBuildrequest(self.master, brid) url = getURLForBuildrequest(self.master, brid)
yield self.addURL(f"{scheduler.name} #{brid}", url) yield self.addURL(f"{scheduler.name} #{brid}", url)
self._add_results(brid) self._add_results(brid)
self.brids.append(brid)
print('Waiting..') print('Waiting..')
wait_for_next = defer.DeferredList([results for _, _, results in scheduled], fireOnOneCallback = True, fireOnOneErrback=True) wait_for_next = defer.DeferredList([results for _, _, results in scheduled], fireOnOneCallback = True, fireOnOneErrback=True)
self.waitForFinishDeferred = wait_for_next self.waitForFinishDeferred = wait_for_next