A
A
adam_carraway2020-11-09 15:01:56
Laravel
adam_carraway, 2020-11-09 15:01:56

How does running console commands work?

The Kernel has several commands to run, for example

$schedule->command(Сomm1::class)->everyMinute();
        $schedule->command(Comm2::class)->everyMinute();

or
$schedule->command(Comm3::class)->dailyAt('23:59');
      $schedule->command(Comm4::class)->dailyAt('23:59');

How will they be executed, in turn? (the next one won't run until the previous one is fully executed?)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2020-11-09
@adam_carraway

They will be executed sequentially. To avoid this:
https://laravel.com/docs/8.x/scheduling#background ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question