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

Add message queue to AsyncOperationProcessor stopping #1610

Merged
merged 19 commits into from
Jan 23, 2024

Conversation

AleksanderWWW
Copy link
Contributor

@AleksanderWWW AleksanderWWW commented Dec 21, 2023

Before submitting checklist

  • Did you update the CHANGELOG? (not for test updates, internal changes/refactors or CI/CD setup)
  • Did you ask the docs owner to review all the user-facing changes?

Copy link

codecov bot commented Dec 21, 2023

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (8013fc4) 80.09% compared to head (bb5990c) 76.57%.
Report is 10 commits behind head on master.

Files Patch % Lines
.../operation_processors/async_operation_processor.py 58.33% 5 Missing ⚠️
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     
Flag Coverage Δ
e2e-management ?
e2e-s3 ?
e2e-s3-gcs ?
e2e-standard ?
macos 73.65% <93.24%> (-6.18%) ⬇️
py3.7 73.94% <93.24%> (-5.52%) ⬇️
py3.9 ?
ubuntu 73.80% <93.24%> (-5.91%) ⬇️
unit 73.94% <93.24%> (-0.44%) ⬇️
windows 73.12% <93.24%> (-6.54%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@AleksanderWWW AleksanderWWW changed the title Optionally mute all logging in _wait_for_queue_empty Add message queue to AsyncOperationProcessor stopping Jan 10, 2024
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
Copy link
Contributor

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

@AleksanderWWW AleksanderWWW marked this pull request as ready for review January 11, 2024 21:27
@AleksanderWWW AleksanderWWW merged commit e45a73c into master Jan 23, 2024
4 checks passed
@AleksanderWWW AleksanderWWW deleted the aw/optionally-mute-logger branch January 23, 2024 09:35
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