Answer the question
In order to leave comments, you need to log in
How schedule works?
Good day.
Interested in how schedule (Laravel) works.
There is a code:
$schedule->command('sync:getResponseContacts 1')->daily();
$schedule->command('sync:getResponseCampaigns 1')->daily();
$schedule->command('sync:getResponseGeoIp 1')->daily();
$schedule->command('sync:getResponseMessages 1')->daily();
Answer the question
In order to leave comments, you need to log in
This code will be executed sequentially, the delay between the execution of each of the lines will be milliseconds. But, if the first command, for example, is executed long enough, then when the second one is launched, it will still be executed :) That is, the execution of the commands themselves is asynchronous.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question