catcrafts.net/deploy/catcrafts-credits.timer

26 lines
1 KiB
SYSTEMD
Raw Normal View History

2026-08-21 04:52:25 +02:00
# Hourly, because this is now the BACKSTOP rather than the primary path.
2026-08-20 23:33:50 +02:00
#
2026-08-21 04:52:25 +02:00
# Since the bunq webhook landed, a payment normally settles within seconds: bunq
# pushes it, the handler writes the credit, the reconciler picks it up. This
# timer exists for the case the webhook cannot cover — bunq retries a callback
# roughly six times over a few minutes and then DROPS IT FOREVER, so a payment
# that arrives while the backend is restarting (every deploy is a restart) is
# lost to the webhook with no error anywhere. An hourly pull turns that from a
# silently missing donation into an hour of delay.
#
# It was five minutes while the pull WAS the settlement path. Hourly is the
# right cadence for a safety net, and it keeps the noise down.
2026-08-20 23:33:50 +02:00
#
# Persistent=true so a laptop that was asleep pulls once on waking instead of
2026-08-21 04:52:25 +02:00
# silently skipping every window it missed.
2026-08-20 23:33:50 +02:00
[Unit]
2026-08-21 04:52:25 +02:00
Description=Backstop pull of bunq credits for catcrafts.net (hourly)
2026-08-20 23:33:50 +02:00
[Timer]
OnBootSec=2min
2026-08-21 04:52:25 +02:00
OnUnitActiveSec=1h
2026-08-20 23:33:50 +02:00
Persistent=true
2026-08-21 04:52:25 +02:00
AccuracySec=5min
2026-08-20 23:33:50 +02:00
[Install]
WantedBy=timers.target