diff --git a/utils.py b/utils.py index aee7dac1..76503b94 100644 --- a/utils.py +++ b/utils.py @@ -283,6 +283,8 @@ def build_request_sort_key(request: BuildRequest): request.getSubmitTime(), ) + return sorted(requests, build_request_sort_key)[0] + def canStartBuild( builder: Builder, wfb: AbstractWorkerForBuilder, request: BuildRequest