Articles in this section
Automation - Scheduler
Table of Contents
Introduction to Scheduler
|
A Scheduler is generally used to perform automated operations or ‘jobs’ at a predefined time, only when certain conditions are triggered.
In Vtiger CRM also, the Scheduler operates behind the screens periodically to perform different jobs. It automates a lot of operations by running a cron (script) in the background.
You can enable or disable a job from the sequence of execution.
For example, you can have automated email reminders that remind you of upcoming events.
Accessing the Scheduler
Follow these steps to view the Scheduler:
- Click the User Menu icon on the top right corner of the screen.
- Click the Settings button.
- Go to the Automation section.
- Click Scheduler.
You will see jobs are listed by default based on the modules present in your CRM account currently.
Jobs in the Scheduler
The jobs in the scheduler are listed based on:
- A module’s availability in your Vtiger edition
- Whether the module is enabled or disabled (Settings > Module Management > Modules)
If you install modules through extensions and there is an automated operation defined for that module by the CRM, the job will automatically get added to the Scheduler list.
The Scheduler displays all the workflows that are currently running as per the Scheduler List. This is available for multiple scheduled workflows with the same trigger time and helps you know and monitor active workflows.
|
Working of a Scheduler
The Scheduler in Vtiger CRM works 24/7. It scans the job list and checks for the following criteria in a job:
- Sequence: The sequence starts with the number 0. So, the job with sequence number 0 gets first priority, the job with sequence number 1 gets second priority, and so on...
- Frequency: The jobs having a frequency of 00:00 (H:M) will execute instantly, and other jobs execute based on the defined frequency.
- Status: Only jobs having an Active status will be considered. Inactive jobs are skipped.
Once the above criteria are met, the Scheduler operates.
Consider the screenshot below for a clear understanding:
- The Workflow job has sequence number 0, frequency 00:00, and is active. Therefore, it is given first priority and executes instantly.
- The Recurring invoice has sequence number 1, frequency 12:00, and is active. It was last scanned 10 hours ago. The scheduler will wait for 2 more hours before executing at the frequency 12:00.
- The SendReminder has sequence number 2, frequency 00:00, but is inactive. Hence it will be skipped by the Scheduler and moved to the next job.
|
Here are a few samples of jobs that are executed by the Scheduler in Vtiger CRM:
Changing the sequence in the Scheduler
You can change the sequence in which the jobs are executed by the Scheduler when the cron runs.
Follow these steps to change the sequence of a job:
- Click the User Menu icon on the top right corner of the screen.
- Click the Settings button.
- Go to the Automation section.
- Click Scheduler.
- Click the Drag icon under the Actions column.
- Drag the job and place it wherever you wish in the jobs list.
A success message saying ‘Sequence updated successfully’ will pop up, and the sequence number of the job will be changed.
Changing the status of the jobs in the Scheduler
Vtiger CRM provides you the flexibility to enable or disable the jobs that you do not want the scheduler to execute. For instance, if you don’t want a workflow job to be executed, you can disable it by making it inactive.
Follow these steps to change the status of the job:
- Click the User Menu icon on the top right corner of the screen.
- Click the Settings button.
- Go to the Automation section.
- Click Scheduler.
- Click the Edit icon next to the corresponding cron job to change the status.
- Select Active or Inactive from the Status dropdown.
- Click Save.
The status of the job will be changed to Inactive, and the Scheduler will skip it.
|