You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Route::get('test-log', function () {
\Illuminate\Support\Facades\Log::info('The test log has been executed');
});
Route::get('test-log-job', function () {
dispatch(newApp\Jobs\TestJob());
});
@genivaldosilva sorry for my late reply. I noticed that you are using Elasticsearch server version 7.17.13 and elasticsearch-php version 8.10. You should use the latest version 7.17.2 of elasticsearch-php since you are using servion 7 of the server.
Please try and let me know, thanks.
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: