Izvēlieties valodu

Semantyca NM for Joomla Versija 1.0

8 · Sending and the queue

Scheduler and command line

Scheduled tasks, cron set-up and CLI commands.

Semantyca's background work runs through Joomla's Task Scheduler. For dependable delivery, let a real cron job drive the scheduler; the command-line commands are available for scripts and troubleshooting.

Scheduled tasks

The installer creates three tasks under System → Scheduled Tasks:

Joomla Scheduled Tasks filtered to the three Semantyca tasks: send newsletters, process bounces and housekeeping
The Semantyca tasks in Joomla's Task Scheduler.
TaskTypeIntervalWhat it does
Semantyca: send newslettersSemantyca - Send newslettersEvery minuteSends queued messages in batches and starts scheduled newsletters.
Semantyca: process bouncesSemantyca - Process bouncesEvery 15 minutesReads the bounce mailbox and updates subscribers.
Semantyca: housekeepingSemantyca - HousekeepingDailyApplies the retention periods from Options → Privacy (old tracking events, stale unconfirmed sign-ups, unsubscribed people, old consent records) and unsubscribes people who did not reconfirm by the deadline.

Keep the tasks enabled. Run Task runs one immediately. The dashboard's Setup health warns when the send task is disabled or has not run recently.

Make sending independent of visitors (recommended)

By default Joomla's lazy scheduler runs tasks during page visits, so a quiet site sends slowly. Add a cron job on your server that runs the scheduler every minute:

* * * * * php /path/to/joomla/cli/joomla.php scheduler:run

Replace /path/to/joomla with your site's directory; use the PHP binary of your hosting plan if php is not the right one. Once the cron job runs, you may switch off the lazy scheduler in System → Scheduled Tasks → Options.

Without cron, an open Queue tab also sends while a newsletter is sending (see The Queue screen).

Command-line commands

The Console - Semantyca plugin adds three commands to the Joomla CLI:

CommandPurpose
php cli/joomla.php semantyca:queueSend queued newsletter messages
php cli/joomla.php semantyca:bouncesFetch and process the bounce mailbox
php cli/joomla.php semantyca:housekeepingPurge old tracking events and stale sign-ups

Each command accepts --limit (-l, maximum items to process) and --time (-t, time budget in seconds, default 300). Example: php cli/joomla.php semantyca:queue --time=50.

Links in e-mails sent from the command line or scheduler use Options → Advanced → Public site URL, which is filled in automatically on first use. Correct it if your site moves to another address.

Atjaunināts 16 novembris 2026