-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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 subscribed_to maybe empty #7232
Conversation
Codecov Report
@@ Coverage Diff @@
## master #7232 +/- ##
=======================================
Coverage 89.32% 89.32%
=======================================
Files 138 138
Lines 16775 16776 +1
Branches 2450 2451 +1
=======================================
+ Hits 14984 14985 +1
- Misses 1559 1560 +1
+ Partials 232 231 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you please add additional unit tests for the changes proposed?
This pull request introduces 1 alert when merging 6c977aa into 95015a1 - view on LGTM.com new alerts:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall this looks to be the correct fix. I do have a question and we do need a unit test to merge this.
This pull request introduces 1 alert when merging 1140174 into 95015a1 - view on LGTM.com new alerts:
|
@thedrow test_asynchronous.py reduced the coverage, but this pr didn't modify that file. |
no worries the PR coverage looks good. |
There is another problem than I haven't submitted. def _reconnect_pubsub(self):
self._pubsub = None def _reconnect_pubsub(self):
# release old connection before assign to new connection
self._pubsub.reset() I'm not sure yet. |
can you please elaborate more? |
Until 6 hours ago, I completed a test which running 12 hours.
|
Shall we focus this pr |
you can also search for related issues & create a new discussion first to have more consensus |
@thedrow here is a review assigned to you, if you have time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you will need to adjust tests with the codes as well
Also please do more thorough check of codes and tests before another round of review |
@auvipy I have removed redundant code, please recheck. |
ok, i will re check tomorrow. in the mean time can you please recheck that you are done with the issue you are trying to resolve? |
When using redis as backend, gevent or eventlet as concurrency, celery app hold too many redis connections. There are some discussion on #6985. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a minor fix and we're there.
Co-authored-by: Omer Katz <omer.katz@omerkatz.com>
thanks both |
Description
According to these pull requests: #7040 and #7220, I improved the behavior when subscribed_to has been empty, no additional requests.