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

Documentation on _CHECKPOINT_FREQ_SECONDS #1322

Open
duncanwraight opened this issue May 1, 2024 · 0 comments
Open

Documentation on _CHECKPOINT_FREQ_SECONDS #1322

duncanwraight opened this issue May 1, 2024 · 0 comments

Comments

@duncanwraight
Copy link

duncanwraight commented May 1, 2024

Hi folks

I've been looking around online and I can't find any proper documentation on how the KCL works with regard to checkpoints and how often they occur.

I'm using the Python client. The example code in your Github repository has this variable set:

        self._CHECKPOINT_FREQ_SECONDS: int = 10

The example code then appears to process_records at (at least) this interval, so it will only ever "do something" once every 10 seconds (minimum; sometimes longer).

            #
            # Checkpoints every self._CHECKPOINT_FREQ_SECONDS seconds
            #
            if time.time() - self._last_checkpoint_time > self._CHECKPOINT_FREQ_SECONDS:

What I'm trying to understand is.. why? What's the purpose of this "delay"? Could this value be 0? Or perhaps 0.1?

I suspect I'm misunderstanding the way Kinesis/KCL works here, but without any documentation that I can find, I'm at a loss.

Cheers

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

No branches or pull requests

1 participant