exp:notificationevents
List the notification events, or remove the old ones (dry run unless --apply).
Script bin/php/notificationevents.php, code in kernel/private/classes/commands/notificationevents.php. Run it from the installation root, as the user the web server runs as:
./console exp:notificationevents --help
./console exp:notification:events --help
./console exp:notify:events --help
php bin/php/notificationevents.php --helpHelp text
Notification events
list the newest events: id, status, type, age, messages waiting
cleanup remove the handled events nothing waits for, and with --older-than the
events (and their messages) older than that
An event has no date of its own; its age is read from what it is about (the published version, the
collaboration item, the time of a time event). Events whose age cannot be told, because the content
is gone, are listed as unknown and removed only with --include-unknown.
cleanup without --apply removes nothing: it counts what it would remove. --dry-run is still
accepted and means the same as no flag; --apply together with --dry-run is a usage error (exit 2).
./console exp:notification:events list --status=pending --limit=20
./console exp:notification:events cleanup --older-than=30d
./console exp:notification:events cleanup --older-than=30d --applyOptions
| Option | Value | Help |
|---|---|---|
--status | required | list, cleanup --older-than: pending or handled (default both) |
--limit | required | list: how many (default 50) |
--older-than | required | cleanup: 90s, 15m, 12h, 30d, 2w or a date (2026-09-01) |
--include-unknown | cleanup: also remove events whose age cannot be told | |
--apply | cleanup: remove the events (the default counts them and removes nothing) | |
--dry-run | cleanup: the default, kept for scripts that pass it: count, remove nothing | |
--json | list: JSON |
Read from the option definitions in the code (startup(), getOptions(), options() or ezcConsoleOption). Every script also takes the standard options of the script framework (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).
Related
Generated by ./console exp:help:examples from bin/php/notificationevents.php, kernel/private/classes/commands/notificationevents.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.