NEW in Laravel 10.15: Schedule Commands In Seconds

NEW in Laravel 10.15: Schedule Commands In Seconds

Laravel Daily

11 месяцев назад

5,688 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@johnsins5631
@johnsins5631 - 14.07.2023 00:43

finally

Ответить
@p30mehrdad
@p30mehrdad - 13.07.2023 20:07

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

Ответить
@SaiyanJin85
@SaiyanJin85 - 13.07.2023 13:57

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?

Ответить
@codeaxion9194
@codeaxion9194 - 13.07.2023 11:44

please make a video on spatie markdown package in laravel

Ответить
@AndRyu89
@AndRyu89 - 13.07.2023 09:19

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

Ответить
@krzysiej--9229
@krzysiej--9229 - 13.07.2023 09:06

Did you really recorded that video at 4am? This is nuts :D

Ответить
@hamidimomov232
@hamidimomov232 - 13.07.2023 08:28

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 😉👍

Ответить
@JouvaMoufette
@JouvaMoufette - 13.07.2023 08:23

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

Ответить