Laravel 5.1 queue has no effect?

WBOY
Release: 2016-07-06 13:53:12
Original
1070 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template