snjypl commented on issue #21087:
URL: https://github.com/apache/airflow/issues/21087#issuecomment-1121062446

   
   
   
   > So again there is never a guarantee that the last resource version that 
you got is going to be valid the next time that you start the watch, no matter 
how well you track it, if you get disconnected for more than 5 minutes.
   i will try to explain it a bit: 
   
   this  is a part that needs to be handle by the kubernetes client watch loop 
[here]( 
https://github.com/kubernetes-client/python/blob/f379bbabf33f239f49b0e1b7652b6212f3960910/kubernetes/base/watch/watch.py#L162).
  
    
   when you have BOOKMARK enabled, the api server will keep sending you the 
resource_version till which it has processed for your label. it does that 
roughly every 1 minutes. 
   because of the bookmark event you will always have a `resourceVersion` which 
is not old and is in the etcd cache. 
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to