More easily support stopping guix-data-service-process-jobs
This commit is contained in:
parent
d62ea8857d
commit
93d8798df5
1 changed files with 4 additions and 2 deletions
|
|
@ -6,6 +6,8 @@
|
||||||
(define (process-jobs conn)
|
(define (process-jobs conn)
|
||||||
(while #t
|
(while #t
|
||||||
(match (process-next-load-new-guix-revision-job conn)
|
(match (process-next-load-new-guix-revision-job conn)
|
||||||
(#f (begin (simple-format #t "Waiting for new jobs...")
|
(#f (begin
|
||||||
(sleep 60)))
|
(simple-format #t "Waiting for new jobs...")
|
||||||
|
(unless (eq? 0 (sleep 60))
|
||||||
|
(exit 0))))
|
||||||
(_ #f))))
|
(_ #f))))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue