[WargameVODs] Adds hourly sync service.

This commit is contained in:
2026-09-06 10:39:38 -07:00
parent 234d3ec19d
commit 115ee1e957
2 changed files with 27 additions and 1 deletions
@@ -42,4 +42,22 @@ in
config.sops.templates."wargame-vods.env".path
];
};
systemd = {
timers.wargame-vods-import = {
wantedBy = [ "timers.target" ];
timerConfig = {
OnCalendar = "hourly";
Persistent = false; # Do not catch up if timers were missed
RandomizedDelaySec = "5m"; # Jitter so it doesn't get synced up with anything else.
};
};
services.wargame-vods-import = {
description = "Hourly wargame-vods import";
serviceConfig = {
Type = "oneshot";
ExecStart = "${config.local.container-bin}/bin/docker exec wargame-vods /proc/1/exe sync";
};
};
};
}