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(dataflow): Do not skip events to remove old pipeline versions #5469

Merged
merged 1 commit into from Mar 21, 2024

Conversation

sakoush
Copy link
Member

@sakoush sakoush commented Mar 21, 2024

In #5080 there is a change to skip events coming from chainer-server, this essentially has stopped the flow of removing old version of pipelines during a rolling update. The reason being is that the logic that triggers the removal of old versions of the pipeline (here) is eventually coming from setting the status of the new version of the pipeline from an event sent from the chainer-server.

This PR then makes the change to not set the source of the events for deleting old version and therefore they can be processed further by chainer handlePipelineEvent.

This seems not very intuitive but I am not sure if there is a better way at the minute without a big refactor.

@sakoush sakoush requested a review from lc525 as a code owner March 21, 2024 14:03
@sakoush sakoush requested a review from KengoA March 21, 2024 14:04
Copy link
Member

@lc525 lc525 left a comment

Choose a reason for hiding this comment

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

This set of changes does indeed look a bit strange, but thanks to your PR description it became easy to follow the logic. Makes perfect sense to me.

However, we have to be careful not to create any infinite loops in the future, as it seems it would be quite easy to do (now, there are some events without a source coming from "chainer-server")

LGTM

Copy link
Contributor

@KengoA KengoA left a comment

Choose a reason for hiding this comment

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

@sakoush sakoush merged commit 9dfb486 into SeldonIO:v2 Mar 21, 2024
5 checks passed
@sakoush sakoush added the v2 label Mar 21, 2024
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.

None yet

3 participants