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

redis 3.3.0 adds Connection.health_check_interval attribute #240

Closed
isms opened this issue Jul 29, 2019 · 3 comments
Closed

redis 3.3.0 adds Connection.health_check_interval attribute #240

isms opened this issue Jul 29, 2019 · 3 comments

Comments

@isms
Copy link
Contributor

isms commented Jul 29, 2019

An attribute added to redis.connection.Connection last week in 3.3.0 causes an error with current FakeConnection since this attr is now expected.

Here is an example traceback from rq up through redis (with redis==3.3.0 and fakeredis==1.0.3):

Traceback (most recent call last):
 ... <snip project specific traceback lines>
  File "/path/to/virtualenv/lib/python3.6/site-packages/rq/queue.py", line 336, in enqueue
    at_front=at_front, meta=meta
  File "/path/to/virtualenv/lib/python3.6/site-packages/django_rq/queues.py", line 70, in enqueue_call
    return self.original_enqueue_call(*args, **kwargs)
  File "/path/to/virtualenv/lib/python3.6/site-packages/django_rq/queues.py", line 66, in original_enqueue_call
    return super(DjangoRQ, self).enqueue_call(*args, **kwargs)
  File "/path/to/virtualenv/lib/python3.6/site-packages/rq/queue.py", line 286, in enqueue_call
    job = self.enqueue_job(job, at_front=at_front)
  File "/path/to/virtualenv/lib/python3.6/site-packages/rq/queue.py", line 362, in enqueue_job
    pipe.execute()
  File "/path/to/virtualenv/lib/python3.6/site-packages/redis/client.py", line 3677, in execute
    return execute(conn, stack, raise_on_error)
  File "/path/to/virtualenv/lib/python3.6/site-packages/redis/client.py", line 3544, in _execute_transaction
    connection.send_packed_command(all_cmds)
  File "/path/to/virtualenv/lib/python3.6/site-packages/redis/connection.py", line 632, in send_packed_command
    self.check_health()
  File "/path/to/virtualenv/lib/python3.6/site-packages/redis/connection.py", line 613, in check_health
    if self.health_check_interval and time() > self.next_health_check:
AttributeError: 'FakeConnection' object has no attribute 'health_check_interval'
@bmerry
Copy link
Collaborator

bmerry commented Jul 29, 2019

Thanks for the report. I'm going on holiday shortly so I won't be able to deal with this for a few weeks. I'll try to remember to look at it when I get back. If you haven't heard anything by late August feel free to ping me again.

@pinazo
Copy link

pinazo commented Aug 12, 2019

Hi @bmerry, do you plan to release this fix soon?

@bmerry
Copy link
Collaborator

bmerry commented Aug 13, 2019

I'm on holiday at the moment, but I should be able to get a release out later this week.

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

3 participants