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