SYSTEMD · 659 bytes Raw Blame History
1 [Unit]
2 Description=shithub periodic housekeeping (sweeps + purges)
3 After=network-online.target postgresql.service
4
5 [Service]
6 Type=oneshot
7 User=shithub
8 Group=shithub
9 EnvironmentFile=/etc/shithub/worker.env
10 # Each subcommand is idempotent; we kick the canonical sweeps.
11 # lifecycle:sweep was deferred from S16 — past-grace hard-deletes
12 # + transfer expiry; the worker pool runs it on cron tick.
13 ExecStart=/usr/local/bin/shithubd admin run-job lifecycle:sweep
14 ExecStart=/usr/local/bin/shithubd admin run-job jobs:purge_completed
15 ExecStart=/usr/local/bin/shithubd admin run-job webhook:purge_old
16 ExecStart=/usr/local/bin/shithubd admin run-job workflow:cleanup