Skip to content

Scheduled tasks

The two cron jobs every Sworen store needs.

Add these to the web server user’s crontab (sudo crontab -u www-data -e):

# Renews the license lease. A store that can't check in for 7 days stops rendering.
17 3 * * * cd /var/www/sworen && php bin/obelisk license:heartbeat >/dev/null 2>&1
# Picks up order workflows a crashed worker left half-way.
* * * * * cd /var/www/sworen && php bin/obelisk saga:resume >/dev/null 2>&1

Without cron, Sworen still renews the lease after a storefront visit, but a quiet store can run out. Use cron.

Next: activate your license when you buy, and see how themes work to change the storefront.