Improve the job processing
Speed up checking for new jobs, and remove debugging output.
This commit is contained in:
parent
6022edd074
commit
14cb5425d4
1 changed files with 3 additions and 5 deletions
|
|
@ -6,8 +6,6 @@
|
||||||
(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
|
(#f (unless (eq? 0 (sleep 5))
|
||||||
(simple-format #t "Waiting for new jobs...")
|
(exit 0)))
|
||||||
(unless (eq? 0 (sleep 60))
|
(_ (simple-format #t "\nFinished processing job\n\n")))))
|
||||||
(exit 0))))
|
|
||||||
(_ #f))))
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue