Thanks for creating this awesome library. I just starting to use this. My requirement was to run the command every 20 seconds. Everything was working fine but as soon as I moved it to the production server. Suddenly my CPU usage has been showing 100% memory usage. I don't know what's going on and how to handle this problem.
`
protected function shortSchedule(\Spatie\ShortSchedule\ShortSchedule $shortSchedule)
{
// this artisan command will run every 20 second
$shortSchedule->command('check:connectionExpire')->everySeconds(20);
}
`
Below is the command that I had set up on my server crontab-
Hi,
Thanks for creating this awesome library. I just starting to use this. My requirement was to run the command every 20 seconds. Everything was working fine but as soon as I moved it to the production server. Suddenly my CPU usage has been showing 100% memory usage. I don't know what's going on and how to handle this problem.
` protected function shortSchedule(\Spatie\ShortSchedule\ShortSchedule $shortSchedule) { // this artisan command will run every 20 second $shortSchedule->command('check:connectionExpire')->everySeconds(20);
}
` Below is the command that I had set up on my server crontab-
php /var/www/mySite/artisan short-schedule:run 1>> /dev/null 2>&1
Could you please suggest to me what I can do to overcome this problem?
Awaiting your reply.
Regards, Salman Ahmad