Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added missing cron tasks


Excerpt
hiddentrue

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
Table of Contents
outlinetrue
classtoc

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.

Configure Automation

Automation consists of specific tasks which are run at a specific time daily, or at a specific interval. The following tasks are available for configuration:

Create Invoice

Renewing services are invoiced through this task, which runs once daily at the time specified.

Auto Debit

Payment accounts selected for auto debit will run to pay off open invoices daily at the time specified.

Payment Reminders

Payment reminders and late notices are sent daily at the time specified.

Apply Payments to Open Invoices

Loose credits are applied to open invoices automatically at the interval selected.

Provision Paid Pending Services

Paid pending services are activated at the interval selected.

Cancel Scheduled Services

Services with future cancellation dates are removed at the interval selected.

Card Expiration Reminders 15th of Month

A reminder will be sent on the 15th of the month for credit cards expiring that month at the time specified.

Deliver Invoices

Invoices that are scheduled for delivery will be sent at the interval selected.

Backups

Backups are scheduled under [System Settings] > [Backup] individually, and this task should run at least as frequently.

Suspend Services

Past due services will be suspended daily at the time specified.

Exchange Rate Updates

Exchange rates will be updated at the interval specified.

Note
titlePossible Ban

It is not recommended to run this more than twice daily for risk of being blocked by the exchange rate service.

Deliver Reports

A/R, Invoice Generation, Tax Liability, and other reports will be delivered daily at the time specified.

Clean up Logs

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


Info
titleCron Tasks Always Observe Their Schedule

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]

...

.