Non credo che l'ascolto sia destinato ad avere un output, e non riesco a vedere nulla nello ListenCommand che suggerirebbe che ci fosse ancora un output da dare. Tuttavia, quando chiedi aiuto all'artigiano suggerisce --verbose (-v)
che potresti provare?
php artisan queue:listen -v
mia comprensione di ascolto è che è progettato per essere eseguito come servizio in background, in sostanza, chiamando queue:work
ripetutamente. Se si desidera verificare che un lavoratore stia funzionando, chiamare semplicemente queue:work
. Probabilmente vorrai aggiungere un po 'di logging al tuo codice e potrai quindi cercare nei file di registro.
$ 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.>
fonte
2013-04-12 14:56:00
In quale versione di Laravel? La domanda riguarda specificamente Laravel 4 e questo non è assolutamente il caso in Laravel 4.2 – nicja