-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Logs are not sent in Laravel queues #95
Comments
Running |
any update on this? we are encountering this as well. |
Finally found THE trick |
What do you mean? |
If you look at the
That's why |
Does this affect performance sending a log at a time |
Description
Logs from an asynchronous job in a Laravel queue are not sent to CloudWatch until you shutdown the queue process.
This is because
php artisan queue:work
does not close the process. Queue workers do not "reboot" the framework before processing each job.How to reproduce
Note: make sure that in your
.env
you do not use thesync
queue driver.GET /dispatch-job
You will receive the logs in CloudWatch only when you'll interrupt the
queue:work
command. Not before.Related GitHub issues
The text was updated successfully, but these errors were encountered: