From b524b96fcea03d07b20baf5cdfc5f105cc25676e Mon Sep 17 00:00:00 2001 From: catvayor Date: Mon, 24 Feb 2025 16:24:57 +0100 Subject: [PATCH] feat(web03/gestiocof): timers --- .../nixos/web03/django-apps/gestiocof.nix | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/machines/nixos/web03/django-apps/gestiocof.nix b/machines/nixos/web03/django-apps/gestiocof.nix index 5c29473..765accf 100644 --- a/machines/nixos/web03/django-apps/gestiocof.nix +++ b/machines/nixos/web03/django-apps/gestiocof.nix @@ -124,6 +124,26 @@ in SupplementaryGroups = [ "redis-gestiocof" ]; }; }; + timers = { + rappel-negatifs = { + script = '' + python3 manage.py sendrappelsnegatifs + ''; + startAt = "*-*-* 1,13:17:19"; + }; + rappel-bda = { + script = '' + python3 manage.py sendrappels + ''; + startAt = "*-*-* 2,14:17:19"; + }; + manage-reventes = { + script = '' + python3 manage.py manage_reventes + ''; + startAt = "*-*-* *:01..56/5:29"; + }; + }; }; services.redis.servers.gestiocof = {