diff --git a/services/ofborg/default.nix b/services/ofborg/default.nix index e666788..6a852d1 100644 --- a/services/ofborg/default.nix +++ b/services/ofborg/default.nix @@ -27,6 +27,7 @@ in { rabbitmq.enable = mkEnableOption "ofborg AMQP queue"; builder.enable = mkEnableOption "ofborg builder worker"; pastebin.enable = mkEnableOption "ofborg pastebin service"; + statcheck-worker.enable = mkEnableOption "ofborg status & checks worker"; mass-rebuilder.enable = mkEnableOption "ofborg evaluator worker for mass rebuilds jobs"; stats.enable = mkEnableOption "ofborg prometheus worker"; @@ -75,6 +76,10 @@ in { db = "$STATE_DIRECTORY/db.json"; }; + statcheck = { + db = "$STATE_DIRECTORY/db.sqlite"; + }; + # We use Gerrit. vcs = "Gerrit"; gerrit = { @@ -109,6 +114,9 @@ in { (mkIf cfg.pastebin.enable { systemd.services.ofborg-pastebin = mkOfborgWorker "pastebin-worker" { }; }) + (mkIf cfg.statcheck-worker.enable { + systemd.services.ofborg-statcheck-worker = mkOfborgWorker "statcheck-worker" { }; + }) (mkIf cfg.gerrit-events-streamer.enable { systemd.services.ofborg-gerrit-streamer = mkOfborgWorker "gerrit-events-streamer" { }; })