V
V
Vanya Huk2018-02-06 17:06:42
Laravel
Vanya Huk, 2018-02-06 17:06:42

How to properly queue artisan commands?

there is an artisan
command php artisan start_process
and it has multiple processes

Artisan::call('first:start');

       Artisan::call('second:start');

       Artisan::call('third:start');

sometimes in the console after starting it writes third that the process is killed - killed
individually, all commands work fine!
I just can’t understand what is the problem of running them all in a row (

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Zhigalov, 2018-02-13
@alextanver

In the command itself, write the --timeout=0 key, otherwise the artisan command will run out of time, as in your case

S
SteepZero, 2018-02-07
@SteepZero

Timeout, out of memory
What exactly do these commands do?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question