Skip to content

[Fixed] Queued jobs failed with restarting elasticsearch service .  #27

@alirezaImani79

Description

@alirezaImani79

Package version

Im using v2.8.7 of the package

Describe the bug

Im using this package to insert the http request info of every request that hits the application to elasticsearch and for that im using packae in a queued job .
in normal situations everything is working fine . but when elasticsearch container goes down for a moment while users are using the application and again comes up to work we still has connection failed to elasticsearch from queued job .
for a temporary solution we have to run queue:restart to fix this .

I wonder if its a bug in this package or in my application code .

To Reproduce

1- create a queued job and within that job try to insert some data to elasticsearch .
2- stop the elasticsearch container .
3- try dispathing the job and you will get error in queue , inserting to elasticsearch .
4- start the container again .
5- you are still getting failed despite that the elasticsearch container works fine .

Expected behavior

We expect that application continue to inserting request logs to elasticsearch after elasticsearch container continue to work correctly .

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions