From 4c613bdebe6fcc94c4907b6135c0b9bd16bcac93 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sun, 11 Oct 2020 14:19:49 +0100 Subject: Show backtrace on agent exceptions --- guix-build-coordinator/utils.scm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/guix-build-coordinator/utils.scm b/guix-build-coordinator/utils.scm index ad0df90..937f985 100644 --- a/guix-build-coordinator/utils.scm +++ b/guix-build-coordinator/utils.scm @@ -529,7 +529,12 @@ References: ~a~%" ;; Add the job back to the queue so that it's tried again (apply process-job job-args)) (lambda () - (apply proc job-args)) + (with-exception-handler + (lambda (exn) + (backtrace) + (raise-exception exn)) + (lambda () + (apply proc job-args)))) #:unwind? #t) (with-mutex queue-mutex (set! running-jobs-count (- running-jobs-count 1))))) -- cgit v1.2.3