w wokku
Get Started
~/docs
/
guides

# Schedule Tasks (Cron)

Updated · Edit on GitHub ↗

Run a command on a schedule — nightly cleanups, report emails, cache warmers,
data syncs — without a long-running worker.

// note

How it works

A scheduled task runs a one-off command inside a fresh copy of your app’s
container on a cron schedule, then exits. It shares your app’s config vars and
linked add-ons, so it can reach your database and Redis.

Create a scheduled task

  1. Open your app → Scheduled Tasks
  2. New Task → enter a cron expression and the command
  3. Save — it runs on schedule from now on

Cron expression quick reference

text
┌─ minute (0-59)
│ ┌─ hour (0-23)
│ │ ┌─ day of month (1-31)
│ │ │ ┌─ month (1-12)
│ │ │ │ ┌─ day of week (0-6, Sun=0)
* * * * *
Schedule Meaning
*/15 * * * * every 15 minutes
0 * * * * hourly, on the hour
0 2 * * * daily at 02:00
0 0 * * 1 every Monday at midnight
// careful

List & remove

bash
wokku scheduled-tasks my-app            # list
wokku scheduled-tasks:remove my-app ID  # remove

Troubleshooting

  • Task didn’t run — confirm the cron is UTC and the app is Pro.
  • Command not found — use the same path you’d use in wokku run (e.g. bin/rails, python manage.py).
  • Needs the DB — it inherits config vars + add-ons automatically; no extra wiring.

Next steps

Was this page helpful?