我不相信listen意味着有任何输出,我在ListenCommand中看不到任何表明还有更多输出要给的东西.但是,当你向工匠寻求帮助时,它会建议--verbose (-v)
你可以尝试一下吗?
php artisan queue:listen -v
Run Code Online (Sandbox Code Playgroud)
我对listen的理解是它被设计为作为后台服务运行,实质上是queue:work
重复调用.如果你想测试一个工人在工作,你只需要打电话给queue:work
自己.您可能希望在代码中添加一些日志记录,然后您就可以查看日志文件了.
Run Code Online (Sandbox Code Playgroud)$ php artisan help queue:listen Usage: queue:listen [--queue[="..."]] [--delay[="..."]] [--memory[="..."]] [--timeout[="..."]] [connection] Arguments: connection The name of connection Options: --queue The queue to listen on --delay Amount of time to delay failed jobs (default: 0) --memory The memory limit in megabytes (default: 128) --timeout Seconds a job may run before timing out (default: 60) --help (-h) Display this help message. --quiet (-q) Do not output any message. --verbose (-v) Increase verbosity of messages. --version (-V) Display this application version. --ansi Force ANSI output. --no-ansi Disable ANSI output. --no-interaction (-n) Do not ask any interactive question. --env The environment the command should run under.>
归档时间: |
|
查看次数: |
6070 次 |
最近记录: |