Skip to content

Conversation

@abpostelnicu
Copy link
Contributor

No description provided.

@abpostelnicu abpostelnicu requested a review from marco-c December 7, 2022 14:11
@marco-c
Copy link
Collaborator

marco-c commented Dec 7, 2022

We might need to re-connect on failure, rather than just retrying. What was the error message exactly?

@abpostelnicu
Copy link
Contributor Author

abpostelnicu commented Dec 7, 2022

We might need to re-connect on failure, rather than just retrying. What was the error message exactly?

This is an older log with aioredis, but it was almost identical with redis-py, https://paste.mozilla.org/h8jpZrcd
Doesn't it retry to connect? Managing the connection means that we will have to recreate the redis object from AsyncRedis.connect().

@marco-c
Copy link
Collaborator

marco-c commented Dec 7, 2022

Maybe there is a way with the library to enable auto-reconnection? If not, we'd have to build a wrapper around it, or another option could be to create a new connection for every rpush (but that might slow things down).

@abpostelnicu abpostelnicu force-pushed the master branch 4 times, most recently from 9c1f6d6 to 8b2f506 Compare December 7, 2022 17:44
@abpostelnicu abpostelnicu requested a review from marco-c December 12, 2022 11:50
@abpostelnicu abpostelnicu merged commit c5ce3cf into mozilla:master Dec 12, 2022
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

Successfully merging this pull request may close these issues.

2 participants