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

feat(transcription): Slow down leaving participants. #528

Merged
merged 2 commits into from
Mar 19, 2024
Merged

Conversation

damencho
Copy link
Member

Slow down events internally in the transcriber, so we give time for the service to return any pending transcriptions. We also wait for all leave processing to finish before transcriber leaves the room, so any sent transcriptions to be processed.

Slow down events internally in the transcriber, so we give time for the service to return any pending transcriptions.
We also wait for all leave processing to finish before transcriber leaves the room, so any sent transcriptions to be processed.
Copy link

codecov bot commented Mar 18, 2024

Codecov Report

Attention: Patch coverage is 0% with 19 lines in your changes are missing coverage. Please review.

Project coverage is 20.49%. Comparing base (86273ae) to head (87c2bc9).
Report is 11 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #528      +/-   ##
============================================
- Coverage     20.86%   20.49%   -0.37%     
+ Complexity      289      287       -2     
============================================
  Files            74       76       +2     
  Lines          6222     6313      +91     
  Branches        833      838       +5     
============================================
- Hits           1298     1294       -4     
- Misses         4699     4801     +102     
+ Partials        225      218       -7     
Files Coverage Δ
.../org/jitsi/jigasi/TranscriptionGatewaySession.java 0.00% <0.00%> (ø)

... and 4 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 71b8a91...87c2bc9. Read the comment docs.

bgrozev
bgrozev previously approved these changes Mar 19, 2024
/**
* The thread pool to serve all leave operations.
*/
private static final ScheduledExecutorService leaveThreadPool = Executors.newScheduledThreadPool(
Copy link
Member

Choose a reason for hiding this comment

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

Why 2 threads?

Copy link
Member Author

Choose a reason for hiding this comment

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

The operation shouldn't be time-consuming and this is for the whole jigasi all meetings, not a strong reason.

// give some time for the transcriptions for this participant to be ready
leaveThreadPool.schedule(() ->
{
this.transcriber.participantLeft(identifier);
Copy link
Member

Choose a reason for hiding this comment

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

What if this throws? Maybe just decrement the counter beforehand?

@damencho damencho merged commit 6e60482 into master Mar 19, 2024
2 of 4 checks passed
@damencho damencho deleted the relax-leaving branch March 19, 2024 20:28
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.

3 participants