D
D
DireX2016-03-17 02:23:01
Laravel
DireX, 2016-03-17 02:23:01

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();

These tasks will run at 0:00 server time. But how will they be done? One at a time or all at once?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita Kolosov, 2016-03-17
@xDireX

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 question

Ask a Question

731 491 924 answers to any question