Hello!
I tried to follow the instructions here for making a DescribeTaskQueueRequest and it’s not going as expected using the java-sdk.
When I use the tctl
equivalent it returns expected data.
I believe we’re still on Temporal v1.10.0, but I tested locally with a more current version of Temporal and the same issue happens. Returns 0 pollers even though I suspect that to be false.
In fact, I can also see via the UI as well that the task queue does have pollers.
So where am I going wrong with the java-sdk? Ultimately, we want to guard against accidentally deleting a worker from a task queue so we want to implement this as a health check as part of our deployments.
Thanks!
TASK_QUEUE_MAP.forEach((key, value) -> {
LOGGER.info("{} -- {}", key, value);
final var tq = TaskQueue.newBuilder().setName(value).build();
final var describeTaskQueue = DescribeTaskQueueRequest.newBuilder()
.setNamespace(namespace)
.setTaskQueue(tq)
.build();
final var result = test.blockingStub().describeTaskQueue(describeTaskQueue);
LOGGER.info("Here is you pollers list:\n\n{}", result.getPollersCount()); // this always returns 0