spatie / laravel-short-schedule

Schedule artisan commands to run at a sub-minute frequency
https://freek.dev/1683-a-package-to-schedule-artisan-commands-at-sub-minute-frequencies
MIT License
611 stars 52 forks source link

Mysql stopped working while using this package #77

Closed nirmalgoswami closed 1 year ago

nirmalgoswami commented 1 year ago

Hi, thank you for providing solution to run cron every x seconds

Working fine : $schedule->command('abc')->everyMinute() Not Working : $shortSchedule->command('abc')->everySeconds(60)->withoutOverlapping()

i want to run script every 20 seconds but short schedule was killing mysql server later tried with 60 seconds to debug whether it is issue related server or command, i find out that schedule:run working fine but short-schedule:run is killing mysql server even with 60 seconds

any help ? should i use sleep method with native laravel schedule command ? or any setting can be done with this package to prevent to stop mysql server