Skip to content

Commit

Permalink
add missing return
Browse files Browse the repository at this point in the history
this was introduced in f5f907d
  • Loading branch information
Mic92 authored and mergify[bot] committed Jan 1, 2025
1 parent 5ec90fe commit 387f1ba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions buildbot_nix/buildbot_nix/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ def get_failed_dependents(

return removed

async def run(self) -> None:
async def run(self) -> int:
"""
This function implements a relatively simple scheduling algorithm. At the start we compute the
interdependencies between each of the jobs we want to run and at every iteration we schedule those
Expand Down Expand Up @@ -536,7 +536,7 @@ async def run(self) -> None:

results: list[int]
index: int
results, index = await self.wait_for_finish_deferred
results, index = await self.wait_for_finish_deferred # type: ignore[assignment]

job, brids, _ = scheduled[index]
done.append(BuildTrigger.DoneJob(job, brids, results))
Expand Down Expand Up @@ -607,6 +607,7 @@ async def run(self) -> None:
overall_result,
)
scheduler_log.addStdout("Done!\n")
return overall_result

def getCurrentSummary(self) -> dict[str, str]: # noqa: N802
summary = []
Expand Down

0 comments on commit 387f1ba

Please sign in to comment.