Nomen 1.7.0: scheduled tasks, settings split into four pages

Nomen scheduled tasks

Nomen 1.7.0 brings scheduled tasks: one crontab entry calls the core every minute, and each task declares its own interval or a daily time. Personal settings are split from one long page into four, and connecting a third-party login now shows the result right away.

Scheduled tasks

Add one line to crontab — php /path/to/nomen schedule run — and let tasks declare the rest: an interval in seconds, or a daily time via daily_at. Under Settings → Scheduled tasks the admin shows each task’s last and next run plus failure counts, and a Run now button queues a task for the next minute; php bin/nomen schedule list prints the crontab line to add. Tasks take a lock in the database first, so two processes starting in the same minute run it once.

Sites without cron keep working: tasks simply run off-schedule, the admin shows a notice while the scheduler has never run, and the Pages sitemap falls back to generating on request. The core ships a per-minute heartbeat whose last-run time doubles as the cron health signal.

Plugins can schedule their own

Plugins register recurring tasks through the schedule.tasks hook. Pages 1.6.0 uses it to pre-generate its sitemap and serve requests from cache; without cron it still generates on request.

Settings split into four pages

Personal settings went from one page with eighteen blocks to four: profile, security, sign-in and devices, preferences. Old #sec-* links jump to the matching subpage. After connecting a third-party login you land on the identities section, scrolled into view and highlighted; a long-standing bug that made the first screen re-request data and swallow the server-side notice is fixed too.

Upgrading

1.7.0 includes a migration; php bin/nomen upgrade creates the scheduled_tasks table. To use scheduled tasks, add the crontab line per the docs — without it the site runs as before. The project is at nomenid.org; the source is on GitHub.