Trigger Cron expression to run in every 10 secs

Hi there,

I am trying to schedule a Trigger to run a Bot in every 10 secs. Currently, minimum is 1 min. But I believe with Cron expression, I can set it to run every 10 secs or any interval. Could you please help me with the expression. I could not find a good document of how to use the expression - please share the link if you come across setting up cron. Thanks in advance.

1 Like

Hello @Akimalam

Try using this Cron Expression ->

10 0 0 ? * * *

2 Likes

Hi @Akimalam,
You can build and test your cron expressions from below url:
http://www.cronmaker.com/

1 Like

@vickydas - can you please tell me how did you generate this .
in cronmaker.com - i am not able to get the same output.

hello @Hitesh1
Check this website for more information

https://www.freeformatter.com/cron-expression-generator-quartz.html

2 Likes

10 0 0 ? * * * translates to
At 00:00:10am every day

I am trying to create in every 10 sec of all hours… in other words, if we start at 9:00 am, bot should be triggered at 9:10, 9:20, 9:20, 9:30, 9:40, 9:50, 10:00, 10:10… so forth.

Thanks for the Cron expression link - trying figure out the correct expression for it.

Hi @Akimalam, 0/10 * * * * ? try this

@vickydas I used the cron Expression that I specified 0/10 * * * * ? and successfully scheduled the bot to run for every 10 seconds.

Yes, 0/10 worked - I appreciate the help.

still, unless you have dozens of available robots i think this would have very little effect than doing every 1 minute right?

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.