Skip to content
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

Missing apply_async ConnectionError handling #123

Open
pkariz opened this issue Jul 28, 2020 · 1 comment
Open

Missing apply_async ConnectionError handling #123

pkariz opened this issue Jul 28, 2020 · 1 comment

Comments

@pkariz
Copy link
Contributor

pkariz commented Jul 28, 2020

While calling apply_async i got this:

File "/usr/local/lib/python3.6/site-packages/redis/connection.py" in send_packed_command
  709.                                   (errno, errmsg))
Exception Type: OperationalError at <url>
Exception Value: Error 104 while writing to socket. Connection reset by peer.

and the key has been locked even though there was no task on the queue.
I feel like here the case when apply_async call fails (doesn't push task on the queue) is not handled, so we end up in a state where the key is locked and we don't have the task in the queue. I haven't tried to reproduce this, maybe it's possible to just have redis settings point to an invalid endpoint.

@pkariz pkariz changed the title Missing exception for ConnectionError Missing apply_async ConnectionError handling Jul 28, 2020
@skinderis
Copy link

I have the same problem, when ConnectionError is raised task is remaining locked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants