m-trieu commented on code in PR #30764: URL: https://github.com/apache/beam/pull/30764#discussion_r1575765433
########## runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/streaming/ExecutionState.java: ########## @@ -51,4 +54,13 @@ public abstract static class Builder { public abstract ExecutionState build(); } + + public final void close() { + try { + context().invalidateCache(); + workExecutor().close(); + } catch (Exception e) { + LOG.warn("Failed to close map task executor: ", e); Review Comment: done -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@beam.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org