# Add-on storefronts (mcp. omniforge. sports. respawn. workspace.) — every 10 minutes: reminder e-mails before a
# plan ends, and plans whose time is up are ended through their add-on (key revoked, server stopped, workspace
# removed …); stale live snapshots are refreshed. www-data: it reads/writes alpha-private/site-*.json.
#
# ⚠️ flock -n: an add-on's teardown can be slow (a container stop) — never two workers at once.
*/10 * * * * www-data /usr/bin/flock -n /run/lock/alpha-sitestore.lock /usr/bin/nice -n 10 /usr/bin/php /var/www/alpha/bin/sitestore-run.php >/dev/null 2>&1
