CRON expression for shorter duration

  • 1
  • Question
  • Updated 3 months ago
  • Answered
I have a special rule that I have built to fire a CTA whenever a certain event takes place in SFDC.

I want to be able to run this repeatedly though out the day, and have my Success Operations team react when these items are created.

In looking at the Advanced Scheduler it looks like I can only schedule this every two hours, which is fine.  I am just curious if this is correct?

CRON Expression for two hours is : 0 0 0/2 1/1 * ? * and that will work.

If I make the CRON expression every 15 minutes like this: 0 0/15 * 1/1 * ? * it says too short a Duration.

Is two hours my limit for how short of a frequency I can schedule things?
Photo of Bill Davis

Bill Davis

  • 382 Points 250 badge 2x thumb

Posted 3 months ago

  • 1
Photo of Tim Schukar

Tim Schukar, Employee

  • 1,788 Points 1k badge 2x thumb
Hey Bill!

Yes, at the current time, two hours is the most frequent setting for running a rule. There are technical reasons for this, but as tech changes, this frequency will likely as well.

Thanks!

Tim
Photo of Sai Ram Pulluri

Sai Ram Pulluri, Official Rep

  • 12,426 Points 10k badge 2x thumb
Hi Bill,

Following is the description for the Cron expression.
 
0 0 0/2 1/1 * ? *    At second :00, at minute :00, every 2 hours starting at 00am, every day starting on the 1st, every month

0 0 0/2 ? * * *       At second :00, at minute :00, every 2 hours starting at 00am, of every day.


Using Advanced schedule type enables you to run the rules as frequently as every two hours. Please refer this article.
Photo of Dan Ahrens

Dan Ahrens, Official Rep

  • 24,990 Points 20k badge 2x thumb
Hi Bill - ask and ye shall receive!

In the May 2018 release we added the ability to trigger a rule using the events framework, which essentially is near real time. The events framework is continually listening for new events and whenever one of those events takes place, the rule will be triggered. 

Check out this link for more info: https://support.gainsight.com/Release_Notes/Recent_Release_Notes_by_Theme/Catch-up_on_Rules_Engine_E...
Photo of Jitin Mehndiratta

Jitin Mehndiratta, Product Manager

  • 3,254 Points 3k badge 2x thumb
Hi Bill,

Just curious to know what is the exact use case for running the rule every 15 minutes. Can you give some more details about it?

Regards,
Jitin