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

fix #65: avoid worker crash in case connection is broken #64

Merged
merged 1 commit into from
Sep 28, 2024

Conversation

khizunov
Copy link
Contributor

@khizunov khizunov commented Jul 1, 2024

The issue is that if the connection is disrupted (due to a Redis restart or temporary connectivity issues), the Taskiq worker crashes, interrupting all ongoing handlers. For example, any long-running tasks will be interrupted and will not complete their work.

Copy link
Member

@s3rius s3rius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please describe when this feature is required, because taskiq worker automatically restarts if anything goes wrong?

taskiq_redis/redis_broker.py Show resolved Hide resolved
@khizunov
Copy link
Contributor Author

khizunov commented Jul 1, 2024

Can you please describe when this feature is required, because taskiq worker automatically restarts if anything goes wrong?

Sure, I was going to open an issue.

The issue is that if the connection is disrupted (due to a Redis restart or temporary connectivity issues), the Taskiq worker crashes, interrupting all ongoing handlers. For example, any long-running tasks will be interrupted and will not complete their work.

@khizunov khizunov force-pushed the anton/try_except_listen branch from 499538a to ece9df8 Compare July 1, 2024 10:43
@khizunov khizunov changed the title add try except to listen fix #65: avoid worker crash in case connection is broken Jul 1, 2024
@khizunov khizunov requested a review from s3rius July 1, 2024 11:03
@khizunov
Copy link
Contributor Author

khizunov commented Jul 3, 2024

@s3rius

@khizunov
Copy link
Contributor Author

@s3rius did you have a chance to look at it?

@s3rius
Copy link
Member

s3rius commented Sep 26, 2024

Please rebase onto main branch and we will merge it.

@khizunov khizunov requested a review from s3rius September 28, 2024 12:44
@khizunov khizunov force-pushed the anton/try_except_listen branch from 1034306 to b5e9328 Compare September 28, 2024 12:47
@s3rius s3rius changed the base branch from develop to main September 28, 2024 21:31
@s3rius s3rius merged commit e30ed08 into taskiq-python:main Sep 28, 2024
8 checks passed
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