-
Notifications
You must be signed in to change notification settings - Fork 63
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
Add message queue to AsyncOperationProcessor
stopping
#1610
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #1610 +/- ##
==========================================
- Coverage 80.09% 76.57% -3.52%
==========================================
Files 292 293 +1
Lines 14554 14618 +64
==========================================
- Hits 11657 11194 -463
- Misses 2897 3424 +527
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
AsyncOperationProcessor
stopping
src/neptune/internal/operation_processors/async_operation_processor.py
Outdated
Show resolved
Hide resolved
waiting_start: float = monotonic() | ||
time_elapsed: float = 0.0 | ||
max_reconnect_wait_time: float = self.STOP_QUEUE_MAX_TIME_NO_CONNECTION_SECONDS if seconds is None else seconds | ||
|
||
if initial_queue_size > 0: | ||
if self._consumer.last_backoff_time > 0: | ||
if msg_queue is not None: | ||
msg_queue.put(None) # to block message queue from logging anything |
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.
I don't understand this part
Before submitting checklist