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 <masterancpp@gmail.com>
This commit is contained in:
parent
c007bbeeb9
commit
df0bd6b4eb
|
@ -27,6 +27,7 @@ in {
|
||||||
rabbitmq.enable = mkEnableOption "ofborg AMQP queue";
|
rabbitmq.enable = mkEnableOption "ofborg AMQP queue";
|
||||||
builder.enable = mkEnableOption "ofborg builder worker";
|
builder.enable = mkEnableOption "ofborg builder worker";
|
||||||
pastebin.enable = mkEnableOption "ofborg pastebin service";
|
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";
|
mass-rebuilder.enable = mkEnableOption "ofborg evaluator worker for mass rebuilds jobs";
|
||||||
stats.enable = mkEnableOption "ofborg prometheus worker";
|
stats.enable = mkEnableOption "ofborg prometheus worker";
|
||||||
|
|
||||||
|
@ -75,6 +76,10 @@ in {
|
||||||
db = "$STATE_DIRECTORY/db.json";
|
db = "$STATE_DIRECTORY/db.json";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
statcheck = {
|
||||||
|
db = "$STATE_DIRECTORY/db.sqlite";
|
||||||
|
};
|
||||||
|
|
||||||
# We use Gerrit.
|
# We use Gerrit.
|
||||||
vcs = "Gerrit";
|
vcs = "Gerrit";
|
||||||
gerrit = {
|
gerrit = {
|
||||||
|
@ -109,6 +114,9 @@ in {
|
||||||
(mkIf cfg.pastebin.enable {
|
(mkIf cfg.pastebin.enable {
|
||||||
systemd.services.ofborg-pastebin = mkOfborgWorker "pastebin-worker" { };
|
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 {
|
(mkIf cfg.gerrit-events-streamer.enable {
|
||||||
systemd.services.ofborg-gerrit-streamer = mkOfborgWorker "gerrit-events-streamer" { };
|
systemd.services.ofborg-gerrit-streamer = mkOfborgWorker "gerrit-events-streamer" { };
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue