Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CRON expression - smallest interval?

Tags:

cron

Is it possible to define an interval less than a second with a CRON expression?

like image 436
Zoman Avatar asked Oct 24 '25 14:10

Zoman


1 Answers

The smallest interval you can describe in a Cron expression is actually one minute. Any less than that and you need to handle the intervals otherwise. How about starting your script and just sleeping for less than and a second between every action?

like image 65
Tatu Ulmanen Avatar answered Oct 27 '25 02:10

Tatu Ulmanen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!