The work of the watch process in this case is to call some other piece of code, let's call it a scheduler , with a regular periodic interval. As an argument, let's say that our scheduler will wait for a call every minute. This is how Laravella's scheduler is set up and, therefore, the Heroka clock that I use (and wrote).
? , . - . , . , . ( - !).
heroku , clock: php artisan clock. Laravel. php, .
? , , , , .
? , (, , 14:00 ..). , , , , , : "- ?". - , ( dyno / , , ), : " " ., .
, OP php laravel, , laravel, , . laravel. , , , , . . - cron, . Heroku , - .
, , , - php-, ( heroku, Procfile, , ) ( procfile, t ), , , , , , $this->call('schedule:run') , , $this->call('schedule:run'), . , , , .
, , , !
( ). , , Procfile .
while(true) {
if (now()->second <= 10)
{
$this->call('schedule:run');
sleep(4);
}
sleep(7);
}
, , , , . , / 30 . , , ( heroku), , .
, . , , . , 10 dyno. , , 10 . , , ( ), , . , . , - . , , , , . , , ! , , . , , , , , , . , - , .
, OP, "", , , , , , " , ', , . , , .