mirror of
git://git.savannah.gnu.org/guix/data-service.git
synced 2023-12-14 03:23:03 +01:00
Improve the job processing
Speed up checking for new jobs, and remove debugging output.
This commit is contained in:
parent
6022edd074
commit
14cb5425d4
|
@ -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…
Reference in a new issue