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: pool timeout bug #38

Merged
merged 1 commit into from
Mar 15, 2024
Merged

fix: pool timeout bug #38

merged 1 commit into from
Mar 15, 2024

Conversation

neriumrevolta
Copy link
Contributor

@neriumrevolta neriumrevolta commented Mar 12, 2024

  • added count_messages resolver
  • made prune_old_messages more efficient
  • renamed comparison_interval to summary_interval to match what the function is doing a bit better, also increased the interval to 180 seconds
  • using count_messages instead of list_messages in summary function
  • other small changes

@neriumrevolta neriumrevolta force-pushed the petko/fix-pool-timeout-bug branch 3 times, most recently from 3278723 to 30b9bfd Compare March 12, 2024 12:30
@neriumrevolta neriumrevolta linked an issue Mar 12, 2024 that may be closed by this pull request
@neriumrevolta neriumrevolta marked this pull request as ready for review March 12, 2024 12:36
hopeyen
hopeyen previously approved these changes Mar 12, 2024
Copy link
Contributor

@hopeyen hopeyen left a comment

Choose a reason for hiding this comment

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

🚢

@neriumrevolta
Copy link
Contributor Author

switching to draft until I fix these damn CI issues

@neriumrevolta neriumrevolta marked this pull request as draft March 15, 2024 13:50
@neriumrevolta neriumrevolta force-pushed the petko/fix-pool-timeout-bug branch 3 times, most recently from a4b6ab2 to 1a10c2f Compare March 15, 2024 15:14
@neriumrevolta neriumrevolta marked this pull request as ready for review March 15, 2024 15:14
Copy link
Contributor

@hopeyen hopeyen left a comment

Choose a reason for hiding this comment

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

damn the ci

@@ -185,10 +185,12 @@ impl RadioOperator {
};
}

let batch_size = 1000;
Copy link
Contributor

Choose a reason for hiding this comment

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

how was this size determined? would like to understand if this is a magic number or if you had some analysis on the optimal size; either way would appreciate a comment in code

Copy link
Contributor Author

Choose a reason for hiding this comment

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

magic number really :> i take recommendations but it seemed like an ok batch size

@neriumrevolta neriumrevolta merged commit 92e0f0a into dev Mar 15, 2024
7 checks passed
@neriumrevolta neriumrevolta deleted the petko/fix-pool-timeout-bug branch March 15, 2024 16: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.

Pool timeout error
2 participants