Files
gaokao-volunteer-system/deploy/systemd/gaokao-retention-cleanup.service
Hermes Agent 7fe4ddcbc4
Some checks failed
CI / pytest (Python 3.10) (push) Has been cancelled
CI / pytest (Python 3.11) (push) Has been cancelled
CI / pytest (Python 3.12) (push) Has been cancelled
feat: harden T12 backup and portal workflows
2026-06-14 23:12:18 +08:00

12 lines
499 B
Desktop File

[Unit]
Description=Gaokao retention cleanup (anonymize expired completed/refunded orders)
After=network.target
[Service]
Type=oneshot
WorkingDirectory=/home/long/project/gaokao-volunteer-system
Environment=GAOKAO_PYTHON_BIN=/usr/bin/python3
Environment=GAOKAO_RETENTION_DAYS=180
EnvironmentFile=-/home/long/project/gaokao-volunteer-system/deploy/systemd/gaokao-jobs.env
ExecStart=/bin/sh -lc 'exec "$GAOKAO_PYTHON_BIN" scripts/gaokao-retention-cleanup.py --retention-days "$GAOKAO_RETENTION_DAYS"'