-
Notifications
You must be signed in to change notification settings - Fork 6
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
Listen function is timing out after 45 sec. #120
Comments
Hi 👋 |
Also another workaround would be to long poll using the current version, i.e. listen and continue next listen from last offset. |
@hnaderi Let me check the options you suggested and get back to you. Thanks |
Do you have any example to do this some where? I can't figure out how to trigger next listen from the last offset. Thanks |
You can see here to figure out watch semantics. Basically you need to pass required arguments to the list method, i.e. |
@pradeepcheers This will publish a snapshot, you can use it by: ThisBuild / resolvers ++= Resolver.sonatypeOssRepos("snapshots")
libraryDependencies ++= Seq(
"dev.hnaderi" %% "scala-k8s-http4s-ember" % "0.12-706250c-SNAPSHOT"
) And you can change timeout like this: EmberKubernetesClient(
EmberClientBuilder.default[IO].withTimeout(Duration.Inf)
).defaultConfig[Json] Edit: CI has failed, I will fix the problem and republish tomorrow. |
@pradeepcheers You can try this version |
@hnaderi Thanks. However getting similar timeout exception in a different place this time!
|
EmberKubernetesClient(
EmberClientBuilder.default[IO].withTimeout(Duration.Inf)
).defaultConfig[Json] Have you changed the client to this? |
@pradeepcheers I filed an issue on the http4s for this behavior here |
@pradeepcheers Apparently the example I gave you was not complete, you need to also add EmberKubernetesClient(
EmberClientBuilder.default[IO]
.withTimeout(Duration.Inf)
.withIdleConnectionTime(Duration.Inf)
).defaultConfig[Json] |
@hnaderi sorry was a bit busy earlier. Let me try what you suggested above, I will keep you posted. I really appreciate your help. Thanks |
@hnaderi the listen function works as expected with the above change. Thanks a lot |
This changes are released in https://github.com/hnaderi/scala-k8s/releases/tag/v0.12.0 |
I'm trying to listen to K8s nodes / pods continuously but the listen function times out after 45 seconds. Is this the expected behaviour? Is there a way to listen indefinitely and print the any new nodes are added to the cluster?
Timeout Exception:
Code:
@hnaderi Could you help with this please? Thanks
The text was updated successfully, but these errors were encountered: