Skip to content
Snippets Groups Projects
Unverified Commit a24bed0b authored by Mathieu Othacehe's avatar Mathieu Othacehe
Browse files

web: Add monitoring fiber.

* bin/cuirass.in (main): Add monitoring fiber in web mode.
parent 0955a11a
No related branches found
No related tags found
No related merge requests found
......@@ -143,12 +143,21 @@ exec ${GUILE:-@GUILE@} --no-auto-compile -e main -s "$0" "$@"
(let ((exit-channel (make-channel)))
(if (option-ref opts 'web #f)
(spawn-fiber
(essential-task
'web exit-channel
(lambda ()
(run-cuirass-server #:host host #:port port)))
#:parallel? #t)
(begin
(spawn-fiber
(essential-task
'web exit-channel
(lambda ()
(run-cuirass-server #:host host #:port port)))
#:parallel? #t)
(spawn-fiber
(essential-task
'monitor exit-channel
(lambda ()
(while #t
(log-monitoring-stats)
(sleep 600))))))
(begin
(clear-build-queue)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment