-
Notifications
You must be signed in to change notification settings - Fork 965
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
Logs are not sent in Laravel queues when use async log #1374
Comments
genivaldosilva
changed the title
Logs are not sent in Laravel queues
Logs are not sent in Laravel queues when use async log
Oct 20, 2023
@genivaldosilva sorry for my late reply. I noticed that you are using Elasticsearch server version |
Hi @ezimuel! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary of problem or feature request
Logs from an asynchronous job in a Laravel queue are not sent to Elasticsearch until you shutdown the queue process.
This is because the
php artisan queue:work
does not close the process. Queue workers do not "reboot" the framework before processing each job.Code snippet of problem
How to reproduce
.env
Call GET
/test-log
You'll see:
Call GET
/test-log-job
You won't see, but when you kill the process:
kill 667
You will receive the log:
System details
8.2
^8.10
elasticsearch:7.17.13
The text was updated successfully, but these errors were encountered: