Why there is a Scheduler
Asynchronous operations are critical to Funnel Metrics with Response Management. These operations improve performance and minimize the impact of the application on normal processing. In general, async operations are performed quickly, but there are two notable exceptions:
- Asynchronous operations where a delay is requested, such as delayed reactivation.
- Asynchronous operations that are applied to multiple records by batch operations, e.g. lead assignments or locked record recovery.
These types of operations are triggered by the response management scheduler. This is a single Scheduled Apex that runs in the system continually, firing once every five minutes or so. You will see it under Setup | Monitor | Jobs | Scheduled Jobs, called "Full Circle Response Management scheduler V3", and the Next Scheduled Run should be in the future. If this Schedule Apex fails to run, many asynchronous operations will not take place and begin to queue up instead. This will cause the system to appear frozen.
Funnel Metrics with Response Management constantly monitors the state of the job to ensure that it is still running, and to determine if a restart is necessary. Normally, the Apex job restarts itself. If a scheduled job stops unexpectedly, however, it will need to be restarted by the backup monitoring system. Reasons for this include:
- Someone manually stops the Apex job
- A Salesforce platform error occurs relating to scheduled Apex
- An unexpected Apex exception occurs during the scheduled Apex job
Note: This is exceedingly rare
The backup monitoring system checks the status of the scheduled Apex job any time a Response Management configuration page is updated, and on every trigger. To provide some degree of control over which users start that scheduled Apex job, Full Circle uses the concept of an asynchronous user or profile. Only async users or users who belong to the designated async profile are allowed to start the scheduled Apex job.
How to Restart the Scheduler
To restart the schedule Apex jobs, have a user that is delegated as the asynchronous user update and save a Full Circle configuration page:
- From the Main Configuration Page, Click General Configuration and scroll /locate the Asynchronous Profiles & Users section.
- Confirm the existing profile and user are listed and the Allow Async check box is selected. You will likely see the System Administrator (the profile that installed the upgrade), and a user - the user that installed the upgrade. If you need to remove, click Remove user/profile button.
- We recommend leaving the system administrator profile
- You can remove and add another user for better auditing, otherwise a system administrator active user will be chosen at random
- For better auditing, It's best not to use the same user that is set up in your marketing automation system
- See example at the bottom of this page.
- To add a new Profile or User, select appropriate role from the drop down field and search for the Profile or user name. Click Add Async User or Profile button.
- Scroll to bottom of page. Click Save and return to main button.
- Log in as a user that is now saved as a Anonymous Profile or User, with Allow Async checked
- Go to any Full Circle configuration page as that Anonymous User, including General Configuration.
- Go to Setup | Scheduled Jobs and confirm that there is a Full Circle Response Managagement Scheduler V3 job in the queue
Now that the scheduler is running again, this job will again run once every five minutes or so.
NOTE: that if there is no slot available, you will see an error in the Full Circle Event Logs - see https://support.fullcircleinsights.c...tch_Job_Errors.
Example:
Comments
0 comments
Please sign in to leave a comment.