In a Jive 7 project, I have a CronTask that is submitted to the TaskEngine at application startup. This Task sends out an email when it is finished running. I am receiving mulitple copies of the email, and I assume that this is because the Task is being executed on each of the nodes in my cluster.
As a fix, I assumed I could add a check to my Task that would only send the email if the application environment was somehow marked to be the "Senior cluster member". In previous versions of Jive, this check was a method exposed in the CacheFactory, and it seems to be removed in Jive 7.
Is there an equivalent check that was added to Jive 7 that I can use to ensure my Task is executed only once?