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 gap detection #244

Closed
wants to merge 1 commit into from
Closed

fix gap detection #244

wants to merge 1 commit into from

Conversation

prolic
Copy link
Member

@prolic prolic commented Oct 20, 2022

resolves #243

/cc @hvanoch

@prolic prolic added the bug label Oct 20, 2022
@prolic prolic requested a review from codeliner October 20, 2022 23:58
$sleep = $this->gapDetection->getSleepForNextRetry();

\usleep($sleep);
\usleep($this->gapDetection->getSleepForNextRetry() * 1000);
Copy link
Member

Choose a reason for hiding this comment

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

I'm thinking about whether we should do the calculation or change the documentation and tell people that sleep time is configured in microseconds 🤔

When multiplying sleep time 1 ms is the shortest sleep interval possible. Maybe that's too long for some use cases?

Copy link
Member

Choose a reason for hiding this comment

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

The good thing is, changing documentation wouldn't change the current behavior. Gap detection is used in production systems, so people have already identified the best sleep time settings for their projections.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm with @codeliner here - afaik this is a BC (as unfortunate it may be).

@prolic
Copy link
Member Author

prolic commented Oct 26, 2022

Agreed.

@prolic prolic closed this Oct 26, 2022
@prolic prolic deleted the gap_detection_fix branch October 26, 2022 03:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gapdetection default wrong time definition
3 participants