From c704d4a274bf4358a5b5b908fae04048339942c4 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Tue, 2 Jul 2019 10:31:29 +0200 Subject: [PATCH] murdock: make get_compile_jobs() return subjobs This change allows callers to receive the job list of individual apps in chunks (instead of all at once after all appdirs have been processed), if run as dwq job itself. E.g., $ dwqc ./.murdock get_compile_jobs would previously run "get_compile_jobs()" as one job, collecting all the output from "get_app_board_toolchain_pairs()" subjobs, then return the combined output as job result. By using subjobs, the job returns right away, but has previously sent the "get_app_board_toolchain_pairs" jobs as subjobs ti the initial instance, which will also wait for all of them to complete, but already print subjob output as it is received. --- .murdock | 1 + 1 file changed, 1 insertion(+) diff --git a/.murdock b/.murdock index fbdbf3bbde..6ed386475d 100755 --- a/.murdock +++ b/.murdock @@ -145,6 +145,7 @@ get_app_board_toolchain_pairs() { get_compile_jobs() { get_apps | \ dwqc ${DWQ_ENV} -s \ + ${DWQ_JOBID:+--subjob} \ "$0 get_app_board_toolchain_pairs \${1} $0 compile" }