X-Git-Url: https://code.consxy.com/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fbase.lisp;h=cdceda1c34fb48ea10f5993d1874080c329fe39e;hb=4c3ed54ab94a2b91fa15302781864593d0e5c38c;hp=3fe9dbe1fa5749f90e42157f418aeccf63c290ee;hpb=da046d80f2ea35db8bc03ee7691308ec3fbedd56;p=candle diff --git a/src/main/base.lisp b/src/main/base.lisp index 3fe9dbe..cdceda1 100644 --- a/src/main/base.lisp +++ b/src/main/base.lisp @@ -3,7 +3,18 @@ (defvar *candle-dir*) (lame-db:defdbstruct project name src) -(lame-db:defdbstruct job status sha when-run (project :join project)) + +; Status here is: +; - :queued - to be run +; - :failed - job failed +; - :succeeded - job succeeded +; - :no-candle-file - no candle file was found +; - :in-progress - job is running +(lame-db:defdbstruct job status sha create-date (project :join project)) + +; in-git here refers to whether the branch exists in git. As branches get deleted, +; this will get set to nil but we keep them around for historical reference +(lame-db:defdbstruct branch name in-git (project :join project) (job :join job)) (defun project-dir (project) (format nil "~Arepos/~A/" *candle-dir* (project-name project)))