From df0bd6b4eb448d9b327b6a5ac1a52577b2c507fa Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Thu, 14 Nov 2024 23:05:23 +0100 Subject: [PATCH] feat: introduce statcheck worker Status & checks RPC & event queue. The status & checks is set by the rest of OfBorg, the web service needs to be exposed. Signed-off-by: Raito Bezarius --- services/ofborg/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/services/ofborg/default.nix b/services/ofborg/default.nix index eeebe7c..0012168 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" { }; })