Open Kira69 opened 10 years ago
Maybe you can't run background commands? Any error logs? Make sure your logs etc. are writable, also for the process running the background process. If possible, just use a 'real' queue.
In order to execute php artisan, I need to edit the file " Async Queue" and modify the command "php artisan queue:async %d --env=%s " to " php.ORIG.5_4 -n artisan queue:async %d --env=%s " for my web host. When I execute this manually in SSH console, I have this :
[Illuminate\Database\Eloquent\ModelNotFoundException]
No query results for model [Barryvdh\Queue\Models\Job].
queue:async job_id
X-Powered-By: PHP/5.4.6 Content-type: text/html
Laravel Log:
[2014-07-22 10:35:28] %s.ERROR: exception 'Illuminate\Database\Eloquent\ModelNotFoundException' with message 'No query results for model [Barryvdh\Queue\Models\Job].' in /home/local/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:674
Stack trace:
you do it wrong. it's php.ORIG.5_4 -n artisan queue:async [enter job_id here] --env=local
I try to send mail with "Mail::later" and "Queue::Later". It works when I tested in local(with wamp) whereas in my online website, it doesn't work. When I took a look in "laq_async_queue" table", all job have the status 0 ( "start process"). When I add a job in local, they have status 1. Best regards
PS: sorry for my english