Skip to content

Commit 1551866

Browse files
authored
add refresh workflow tasks grpc API (#699)
1 parent 50e8830 commit 1551866

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/main/java/com/uber/cadence/internal/compatibility/Thrift2ProtoAdapter.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -695,10 +695,14 @@ public ListTaskListPartitionsResponse ListTaskListPartitions(
695695
public void RefreshWorkflowTasks(RefreshWorkflowTasksRequest request)
696696
throws BadRequestError, DomainNotActiveError, ServiceBusyError, EntityNotExistsError,
697697
TException {
698-
grpcServiceStubs
699-
.workflowBlockingStub()
700-
.refreshWorkflowTasks(
701-
com.uber.cadence.api.v1.RefreshWorkflowTasksRequest.newBuilder().build());
698+
try {
699+
grpcServiceStubs
700+
.workflowBlockingStub()
701+
.refreshWorkflowTasks(
702+
com.uber.cadence.api.v1.RefreshWorkflowTasksRequest.newBuilder().build());
703+
} catch (StatusRuntimeException e) {
704+
throw ErrorMapper.Error(e);
705+
}
702706
}
703707

704708
@Override

0 commit comments

Comments
 (0)