scripts/eskalation_pruefen.py ruft den Service direkt gegen die DB auf (kein HTTP/Admin-Token nötig, gleiches Muster wie scripts/create_admin.py). mabea-eskalation.timer läuft täglich 06:00 Uhr. Zeitschwellen bleiben in der DB (eskalation_konfiguration), nicht im Timer. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CVgbozhYmuEhiEJHffRXCV
18 lines
431 B
Plaintext
18 lines
431 B
Plaintext
[Unit]
|
|
Description=MABEA Eskalations-Pruefung (Karte 12, oneshot)
|
|
After=network.target postgresql.service
|
|
Requires=postgresql.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
User=mabea
|
|
WorkingDirectory=/opt/mabea/backend
|
|
EnvironmentFile=/opt/mabea/backend/.env
|
|
ExecStart=/opt/mabea/backend/.venv/bin/python -m scripts.eskalation_pruefen
|
|
|
|
NoNewPrivileges=true
|
|
ProtectSystem=strict
|
|
ProtectHome=true
|
|
PrivateTmp=true
|
|
ReadWritePaths=/opt/mabea/backend
|