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

Watch() missing events after a while #515

Closed
ahoka opened this issue Nov 2, 2020 · 3 comments
Closed

Watch() missing events after a while #515

ahoka opened this issue Nov 2, 2020 · 3 comments

Comments

@ahoka
Copy link

ahoka commented Nov 2, 2020

We are using Watch to wait for pod completion, but in some cases we miss the completion event.

var pods = client.ListNamespacedPodWithHttpMessagesAsync(config.Namespace, watch: true, fieldSelector: $"metadata.name={pod}");
pods.Watch<V1Pod, V1PodList>((type, item) =>..., ..., ...);

We don't see OnClose or OnError firing when this happens. The first few events are arriving correctly.

Could this be that the underlying connection breaks for some reason, but the stream does not notice it?

@tg123
Copy link
Member

tg123 commented Nov 3, 2020

so completion event is something like when pod was finished?

here are all events from server side

public enum WatchEventType

  • Added
  • Modified
  • Deleted
  • Bookmark
  • Error

maybe, you can push some user event to a queue

@eskaufel
Copy link

duplicate of #533 ?

@brendandburns
Copy link
Contributor

Yes, I think so. I'm going to close it in favor of that issue where there's much more discussion.

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

4 participants