I wanna ask if is there any way to set cron in laravel less then one minute. right now execute script in while true loop is inconsiderable. I'm talking about LINUX system.
Asked
Active
Viewed 1,752 times
1
-
Possible duplicate of http://stackoverflow.com/questions/9619362/running-a-cron-every-30-seconds – Amo Sep 21 '15 at 08:43
-
1@Amo it's not a duplicate, OP is asking how you would do it through Laravel's inbuilt cron system. – ntzm Sep 21 '15 at 10:31
-
Laravel's scheduler delegates to a single cron job which at its lowest interval is 1 minute so getting that to run faster than every minute requires the underlying cron to also be set up at a smaller interval, hence the duplicate. – Amo Sep 21 '15 at 10:38
1 Answers
3
You can not execute cron jobs with less than one minute interval. You can check alternate solutions on https://serverfault.com/questions/49082/can-i-run-a-cron-job-more-frequently-than-every-minute

Community
- 1
- 1

Dimos Karagiannis
- 546
- 3
- 12