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 batch creation. #827

Merged
merged 1 commit into from
Nov 25, 2024
Merged

Fix batch creation. #827

merged 1 commit into from
Nov 25, 2024

Conversation

piohei
Copy link
Contributor

@piohei piohei commented Nov 25, 2024

Motivation

Solution

PR Checklist

  • Added Tests
  • Added Documentation

@piohei piohei requested a review from a team as a code owner November 25, 2024 14:23
@@ -39,7 +39,7 @@ pub async fn create_batches(

// We start a timer and force it to perform one initial tick to avoid an
// immediate trigger.
let mut timer = time::interval(app.config.app.batch_insertion_timeout);
let mut timer = time::interval(Duration::from_secs(5));
Copy link
Contributor

Choose a reason for hiding this comment

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

Why change from a config value to a constant one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We use 5 seconds constant in other tasks and insertion timeout is very big. And when restarted it was waiting batch_insertion timeout before doing a batch while there was enough identities already waiting. :)

@piohei piohei merged commit d582374 into main Nov 25, 2024
5 checks passed
@piohei piohei deleted the piohei/fix_batch_creation branch November 25, 2024 15:15
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