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

[Processor] Do not break wrapper loop on termination #3163

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

rokatyy
Copy link
Contributor

@rokatyy rokatyy commented Feb 8, 2024

This PR aligns wrapper's behaviour for termination with the drain's one. So, we won't break a serving loop after termination, but will discard all events which come afterwards. The reason for this is the conditions when we want to stop waiting for full termination. One of those conditions should be met: runtime is stopped OR waiting timeout is passed. If the runtime exits right after sending an ExplicitAck control message, then the processor might not have enough time to process control messages which leads to processing same messages twice.

… have enough time to finish control messages processing
@rokatyy rokatyy marked this pull request as ready for review February 8, 2024 15:44
@TomerShor TomerShor merged commit 318e8fb into nuclio:development Feb 12, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants