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)
|
||||
(while #t
|
||||
(match (process-next-load-new-guix-revision-job conn)
|
||||
(#f (begin (simple-format #t "Waiting for new jobs...")
|
||||
(sleep 60)))
|
||||
(#f (begin
|
||||
(simple-format #t "Waiting for new jobs...")
|
||||
(unless (eq? 0 (sleep 60))
|
||||
(exit 0))))
|
||||
(_ #f))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue