goodsnotices/README.md

28 lines
298 B
Markdown
Raw Permalink Normal View History

2024-05-27 08:38:53 +00:00
### 商品通知消息队列
2024-05-24 07:55:55 +00:00
2024-05-27 08:38:53 +00:00
#### 执行一次商品通知入队
2024-05-24 07:55:55 +00:00
2024-05-27 08:38:53 +00:00
```
php artisan handle:notice [分片数]
```
2024-05-24 07:55:55 +00:00
2024-05-27 08:38:53 +00:00
#### 定时执行
2024-05-24 07:55:55 +00:00
2024-05-27 08:38:53 +00:00
先执行
2024-05-24 07:55:55 +00:00
2024-05-27 08:38:53 +00:00
```
php artisan schedule:work
```
2024-05-24 07:55:55 +00:00
2024-05-27 08:38:53 +00:00
再新启一个终端执行
2024-05-24 07:55:55 +00:00
2024-05-27 08:38:53 +00:00
```
php artisan schedule:run
```
2024-05-24 07:55:55 +00:00
2024-05-27 08:38:53 +00:00
#### 执行队列任务
2024-05-24 07:55:55 +00:00
2024-05-27 08:38:53 +00:00
```
php artisan queue:work
```