:while active
:do
(sb-thread:with-mutex (mutex)
- (sb-thread:condition-wait waitq mutex)))
- (lame-db:save-known-dbs data-dir))
+ (sb-thread:condition-wait waitq mutex)
+ (lame-db:save-known-dbs data-dir))))
:name "Save Thread")))
(sb-thread:make-thread
(lambda ()
(loop
- (sleep (* 1 60))
+ (sleep (* 5 60))
(sb-thread:with-mutex (mutex)
(sb-thread:condition-broadcast waitq))))
:name "Save Thread Trigger")
((project (find-project-by-name-or-die project-name)))
(length
(remove-if-not
- (lambda (branch) (eql :failed (job-status (branch-job branch))))
+ (lambda (branch) (and (branch-in-git branch) (eql :failed (job-status (branch-job branch)))))
(if project (find-branch-by-project project) *all-branch*)))))