diff --git a/temporal-serviceclient/src/main/java/io/temporal/serviceclient/WorkflowServiceStubsImpl.java b/temporal-serviceclient/src/main/java/io/temporal/serviceclient/WorkflowServiceStubsImpl.java index 0ff053121..b888ee24a 100644 --- a/temporal-serviceclient/src/main/java/io/temporal/serviceclient/WorkflowServiceStubsImpl.java +++ b/temporal-serviceclient/src/main/java/io/temporal/serviceclient/WorkflowServiceStubsImpl.java @@ -19,6 +19,7 @@ package io.temporal.serviceclient; +import com.google.common.util.concurrent.ThreadFactoryBuilder; import io.grpc.Channel; import io.grpc.ClientInterceptor; import io.grpc.ClientInterceptors; @@ -168,7 +169,12 @@ public WorkflowServiceStubsImpl( } private ScheduledExecutorService startConnectionBackoffResetter(Duration backoffResetFrequency) { - ScheduledExecutorService executor = Executors.newSingleThreadScheduledExecutor(); + ScheduledExecutorService executor = + Executors.newSingleThreadScheduledExecutor( + new ThreadFactoryBuilder() + .setDaemon(true) + .setNameFormat("ConnectionBackoffResetter-thread-%d") + .build()); executor.scheduleWithFixedDelay( () -> {