sarub0b0 / kubetui

An intuitive Terminal User Interface (TUI) tool for real-time monitoring and exploration of Kubernetes resources

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve Retry and Resume Logic for Log Streaming

sarub0b0 opened this issue · comments

Due to the following reasons, there is a possibility of fetching duplicate logs during log resumption. Hence, there is a need to improve the logic for resuming log retrieval:

  • The accuracy is compromised because it relies on the relative seconds calculated from the timestamp of the last log and the current time.
  • Since since_seconds is in seconds, it may result in fetching duplicate logs if multiple logs are output within a one-second timeframe.