Skip to content

(fix): refactor batch_event_processor to reset deadline after it passes. #227

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

Merged
merged 11 commits into from
Dec 14, 2019

Conversation

thomaszurkan-optimizely
Copy link
Contributor

Also, hang on queue with timeout at flush interval

Summary

  • The deadline is not reset on the _run after the deadline has passed.
  • get can hang with a timeout. allow get to wait with timeout at flush interval

Test plan

Current tests should pass

Issues

…o, hang on queue with timeout at flush interval
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.05%) to 97.598% when pulling a9a15ac on slightEPRefactor into 9fee8ff on master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.05%) to 97.598% when pulling a9a15ac on slightEPRefactor into 9fee8ff on master.

@coveralls
Copy link

coveralls commented Dec 12, 2019

Coverage Status

Coverage decreased (-0.05%) to 97.599% when pulling 94f52e1 on slightEPRefactor into 9fee8ff on master.

@mikeproeng37
Copy link
Contributor

Fix looks fine to me. Do we need additional unit tests for this fix?

Copy link
Contributor

@mikeproeng37 mikeproeng37 left a comment

Choose a reason for hiding this comment

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

Lgtm

Copy link
Contributor

@aliabbasrizvi aliabbasrizvi left a comment

Choose a reason for hiding this comment

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

Synced with Tom and Mike on this. Changes make sense.

LGTM

@@ -159,9 +159,9 @@ def _get_time(self, _time=None):
Integer time in seconds.
"""
if _time is None:
return int(round(time.time()))
return time.time()
Copy link
Contributor

Choose a reason for hiding this comment

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

Please change the description of the method.
Also Returns, valid time, can be float and integer. Need to revise documentation.

Copy link
Contributor

@msohailhussain msohailhussain left a comment

Choose a reason for hiding this comment

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

lgtm

@thomaszurkan-optimizely thomaszurkan-optimizely merged commit b156e21 into master Dec 14, 2019
@aliabbasrizvi aliabbasrizvi deleted the slightEPRefactor branch May 14, 2020 20:45
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.

5 participants