Automation displays the last run time, the command to configure a cron task with, and allows the cron to be run manually.


Table of Contents

Cron Status

This section consists of the following:

  1. Cron status indicator and last run time.
  2. Cron Command, which should be set up to run every 5 minutes on the server.
  3. Run Cron Manually button, for processing the cron tasks manually.

Running the Cron Manually

All cron tasks

The cron may be run manually by clicking the "Run Cron Manually" button under [Settings] > [System] > [Automation], or by accessing the following URL:

https://www.domain.com/path/to/blesta/cron/?cron_key=YOURCRONKEY

Click "Update Cron Key" to see and set the cron key, and replace YOURCRONKEY in the example above with the key displayed.

Select cron tasks

To run only a select cron task access the following URL:

https://www.domain.com/path/to/blesta/cron/TASK/?cron_key=YOURCRONKEY

As of Blesta version 3.6.0, you may also include a company ID (e.g. "1") to run a specific cron task for that company:

https://www.domain.com/path/to/blesta/cron/TASK/?cron_key=YOURCRONKEY&company_id=YOURCOMPANYID

Replace TASK with the task you wish to run, and YOURCRONKEY with your cron key. Optionally, replace YOURCOMPANYID with the integer ID of the company you wish to run the task on.


TaskDescription
createInvoicesCreate Invoices
applyCreditsApply Credits to Invoices
autoDebitInvoicesAuto Debit Invoices
cardExpirationRemindersSend Card Expiration Reminders
deliverInvoicesDeliver Invoices
deliverReportsDeliver Reports
addPaidPendingServicesAdd Paid Pending Services
suspendServicesSuspend Services
unsuspendServicesUnsuspend Services
cancelScheduledServicesCancel Services Pending Cancellation
processRenewingServicesProcess Service Renewals
processServiceChangesProcess Queued Service Changes
paymentRemindersSend Payment Reminders
updateExchangeRatesUpdate Currency Exchange Rates
pluginTasksProcess Plugin Cron Tasks
moduleTasksProcess Module Cron Tasks
cleanLogsPrune Old Log Data


Running a task manually will not force it to run if it has run recently. Tasks may only run with respect to their scheduled run time as set under [Settings] > [Company] > [Automation].