Add exception handling to the process-jobs script
As I'm seeing this exit on beid, but I'm not sure why.
This commit is contained in:
parent
20ad81f0d4
commit
ca69d3329d
1 changed files with 23 additions and 9 deletions
|
|
@ -77,7 +77,18 @@
|
|||
"process-jobs"
|
||||
(lambda (conn)
|
||||
(simple-format #t "Ready to process jobs...\n")
|
||||
(process-jobs conn
|
||||
(with-exception-handler
|
||||
(lambda (exn)
|
||||
(simple-format
|
||||
(current-error-port)
|
||||
"exception: ~A\n"
|
||||
exn)
|
||||
(exit 1))
|
||||
(lambda ()
|
||||
(with-throw-handler #t
|
||||
(lambda ()
|
||||
(process-jobs
|
||||
conn
|
||||
#:max-processes (assq-ref opts 'max-processes)
|
||||
#:latest-branch-revision-max-processes
|
||||
(or (assq-ref opts 'latest-branch-revision-max-processes)
|
||||
|
|
@ -85,4 +96,7 @@
|
|||
#:skip-system-tests?
|
||||
(assq-ref opts 'skip-system-tests)
|
||||
#:per-job-parallelism
|
||||
(assq-ref opts 'per-job-parallelism)))))
|
||||
(assq-ref opts 'per-job-parallelism)))
|
||||
(lambda _
|
||||
(backtrace))))
|
||||
#:unwind? #t))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue