S
S
Slavik2021-09-11 10:19:26
Laravel
Slavik, 2021-09-11 10:19:26

Performing queues in Laravel?

There is a long process of exporting, importing text data into the database, the file is very large. PHP doesn't have time to process so it aborts with an error timed out.
If you create a Job and add a task to the queue and execute through the worker, will the process be completely asynchronous, that is, will it not terminate after a while?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
JhaoDa, 2021-09-11
@Makro_Slavik

Asynchrony and "will not break in time" are completely unrelated.
Yes, such things need to be done either through a queue (with the appropriate settings, because the worker also has default limits for executing tasks), or through a console command.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question