Scheduled Tasks

WATCH THE VIDEO

Scheduled tasks are used to perform some actions automatically at the background at a pre-defined time or after the specified time intervals. A webstore administrator can also run a scheduled task manually, when it is necessary to synchronize and update some data.

To open scheduled tasks, in Sana Admin click: System > Scheduled tasks.

For more information about each scheduled task available in Sana, read the articles listed below:

General Information Import
Customer Import
Product Import
Prices Import
Blog Publish
Product Image Import
Sitemap Export
ERP Connection Status Check
Authorization Reminders
Customer Data Export
Order Data Export
Process Subscriptions
Product Data Export
Sales Statistics Import
Sync Payment Statuses between Sana and ERP
Payment Capture
Payment Refunds
Sync Payment Statuses between Sana and PSP
Webstore Maintenance Tasks
Clean Up Old Baskets
Update Webstore Language Packages

On the Scheduled tasks page, you can see the status of each task, the last result, the last run time, and next run time.

A lot of scheduled tasks are used to retrieve data from the ERP system. The Scheduled tasks page is available even when there is no ERP connection. This is done so that users can run tasks that do not depend on the ERP connection, for example, the Blog publish and Authorization reminders tasks. If there is no ERP connection, the ERP-dependent tasks are not active.

The table below provides the description of the buttons on the Scheduled tasks page.

Button

Description

History

You can see the history (logs) of all tasks by clicking the History button at the top of the scheduled tasks list, or see the entire history of a certain task by clicking the History button of the related task.

Start

Start the task manually.

There are two options for the Product import and Customer import tasks:

  • Update index - checks whether some products or customers information has been modified in the ERP system and synchronizes the changes with Sana. This is the default action when you click Start. You must update the index, when you changed some product or customer data in the ERP system.

  • Rebuild index - retrieves all products or customers from ERP. Rebuilding the index removes the previously created index and creates the new one. You must rebuild the index only when you changed some global settings which might influence all products or customers.

Edit

Set up task settings.

View log

View the last log file of the task. For example, if the task has failed, you can see the reason of failure in the last log file. If any errors occur, they will be shown in a summary at the end of the scheduled task log.

Multiple tasks can run simultaneously.

Send an E-mail to a Webstore Administrator When a Task Has Failed

Sana Commerce Cloud can send an e-mail to a webstore administrator when a scheduled task has failed. There is an option in the task settings Send e-mail to administrator when task has failed which allows to enable and disable notifications about task failures.

In these e-mails, the webstore administrator can see the name of the task that failed, the name of the webstore, which is useful in case you have several webstores, when the task failed, and the error message. Thanks to this, the webstore administrator can quickly respond to problems with data synchronization.

All e-mails about task failures are sent to the Administrator notifications address set in Sana Admin at the following location: Setup > Basics > E-mail addresses.

For more information, see E-mail Addresses.

To send the e-mails when some scheduled tasks fail, Sana Commerce Cloud uses the e-mail template Task Failure Notification.

For more information, see E-mail Templates.