Setup your cron schedule

Configure and schedule your notifications

Cron is a time-based job scheduler in Unix-like operating systems. It is used to schedule repetitive tasks, such as backups, system maintenance, or sending emails at specific times or intervals. Cron reads a configuration file called the "crontab" that specifies the commands to be run and the schedule at which they should be executed. The syntax of the crontab file is complex but allows for precise scheduling of tasks. Cron runs in the background, checking the crontab file at regular intervals, and executing the specified commands when their scheduled time arrives. Cron is a powerful tool for automating routine tasks and is widely used in system administration and software development.

Saaslogic uses the Cron scheduler to configure its different alerts or notifications. It uses Cron to schedule these notifications in a precise and timely manner. The schedules are created for various events that happen in the subscription lifecycle of the various products in Saaslogic.

They work by helping you specify the minute, hour, day, month and week that these alerts must be sent out for a particular event to a particular customer using a specific product.

HOW IT WORKS?

You can view the various notifications here:-

Product Catalog > Configure Notifications

Each notification tile will have two clickable buttons whose nature varies based on the activity of the notification.

All the events that can be scheduled will have the following buttons:-

  • Schedule

  • Manage Template

All the On Demand events will have the following buttons:-

  • Manage Template

  • Change Template

To start creating schedules for your different event - Click on Schedule

Here you can view all the schedules that have been already created against this event.

Use the Edit icon to edit all the listed schedules.

Click on the Play button to send out the respective reminder instantly.

Enable the toggle button - The notification schedule will get enabled and the respective reminder emails will be triggered and send out to the concerned customers who have purchased that particular subscription.

TO CREATE A SCHEDULE FOR THE EVENTS

Click on +New Schedule

Enter the following details of the new schedule:-

  • Name

  • Time & Date of the schedule

  • Time Zone of your choice

  • Prior Hours

  • Template of the email.

Once a New Schedule has been configured, it will then be applied to the associated event of all the merchants products.

A clear understanding of the following symbols and numbers can help you to set the time and date of the different notifications effectively and as per your requirement. This can then be easily applied to your various notifications or alerts.

  • Asterix (*) - This is used in case you want to consider all the factors in a field. i.e., all months, all weeks, all days, every hour and every minute. This can be replaced by ‘?’ in the month and week feilds. Here, you are not mentioning any specific detail.

  • 0 – this is valid only for the ‘week’ field where it represents ‘Sunday’. However, it is not valid for the rest of the fields.

  • / - represents the current state

  • Comma (,) - It is used to separate the items mentioned in the fields

  • Hyphen (-) – This represents a range and it includes the numbers that are mentioned

  • 0 to 6 – represents Sunday to Saturday in the Week field. An empty Week field will be considered as a Sunday

  • 1 to 12 in the months field represents all the months of the year from January to December. In case you enter a digit higher than 12, only the first digit will be recognized and the corresponding month will be reflected.

Day - This field represents all the days of the month from 1 to 31. Here too, if you enter a digit above 31 only the first digit will be recognized and the corresponding day will be considered.

Hour - In this field, all numbers from 1 to 24 will be recognized as it follows the 24 hour format.

Minute - This field will recognize all numbers from 1 to 59.

You cannot schedule the Cron for OnDemand notifications. It can be set only for the following reminders:- Collection Reminder, Renewal Reminder, Subscription Expired and Trial Expiration Reminder.

The Time & Date section will be active only once you select your preferred Time Zone.

Currently, we only run a daily schedule at a specific time. While running this schedule, Cron will capture all the products that will need to be reminded about that particular activity on that day and subsequently send out the reminder e-mails to customers who have brought that particular product or subscription.