案例1。
我需要的是
我使用的是AWS和Laravelv5.x的php版本7.x
希望每个人都明白我的意思。
提前谢谢。
发布于 2018-07-23 06:12:25
我创建了一个带有参数{user_id}的自定义命令user_id。
运行队列:使用参数--once=true
$this->call('queue:work', [
"--once" => true,
"database"
]);跟踪当前queue:work_stores是否正在运行的一个标志。
检查完整代码https://gist.github.com/little-isaac/a6d70c82f372406f827fb3b399745c8e
https://stackoverflow.com/questions/48150997
复制相似问题