Home >Backend Development >PHP Tutorial >Laravel 5.1 queue has no effect?

Laravel 5.1 queue has no effect?

WBOY
WBOYOriginal
2016-07-06 13:53:121080browse

Written a task class (just for testing), which is to check whether there is any remaining inventory, if so, reduce it by one, and then insert it into the log table
Laravel 5.1 queue has no effect?

The controller pushes the task here:
Laravel 5.1 queue has no effect?

After accessing http://localhost/test, I found that nothing in the database has changed:
Laravel 5.1 queue has no effect?

I enabled monitoring and redis services:
Laravel 5.1 queue has no effect?

What is the reason for this? Please explain!

Reply content:

Written a task class (just for testing), which is to check whether there is any remaining inventory, if so, reduce it by one, and then insert it into the log table
Laravel 5.1 queue has no effect?

The controller pushes the task here:
Laravel 5.1 queue has no effect?

After accessing http://localhost/test, I found that nothing in the database has changed:
Laravel 5.1 queue has no effect?

I enabled monitoring and redis services:
Laravel 5.1 queue has no effect?

What is the reason for this? Please explain!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn