Skip to content

Commit 255ecfd

Browse files
authored
Set skipArchival to true for getResultAsync (#990)
1 parent 6abced9 commit 255ecfd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/uber/cadence/internal/common/WorkflowExecutionUtils.java

+1
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ private static CompletableFuture<HistoryEvent> getInstanceCloseEventAsync(
274274
request.setExecution(workflowExecution);
275275
request.setHistoryEventFilterType(HistoryEventFilterType.CLOSE_EVENT);
276276
request.setWaitForNewEvent(true);
277+
request.setSkipArchival(true);
277278
request.setNextPageToken(pageToken);
278279
CompletableFuture<GetWorkflowExecutionHistoryResponse> response =
279280
getWorkflowExecutionHistoryAsync(service, request, timeout, unit);

0 commit comments

Comments
 (0)