Комментарии:
finally
Ответитьsub minute.
I used to use spite laravel short-scheduler package
for check some external tasks in seconds,check paypal payments,check crypto events, check server peak time, many many uses...
thanks laravel community
Hey Povilas, I have a video idea. Why to use a scheduler instead of running a command using a typical cron on the server. What are the advantages and disadvantages between these two approaches?
Ответитьplease make a video on spatie markdown package in laravel
ОтветитьI just implemented something like this in a batch script setup as a linux service, to manage commands sent to an MQTT broker which are scheduled via a database table fed from various sources
So i need to check every second if there is a new command to send for one or more device
Did you really recorded that video at 4am? This is nuts :D
ОтветитьYes, that is what I needed in a framework. Prior to these days, I used it in a crone as:
# every 20 seconds
* * * * * ( cd /var/www/...
* * * * * ( sleep 20 ; cd /var/www/...
* * * * * (sleep 40 ; cd /var/www/...
Your voice is not hoarse voice if you are speaking good news 😉👍
There may be some decent use cases for this, but the first thing that I'm thinking is that if you use everySecond(), it may be time to use queues/jobs
Ответить