acrites commented on code in PR #29963:
URL: https://github.com/apache/beam/pull/29963#discussion_r1462234804


##########
runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/streaming/Work.java:
##########
@@ -180,6 +182,10 @@ private static LatencyAttribution.Builder 
addActiveLatencyBreakdownToBuilder(
     return builder;
   }
 
+  public boolean isFailed() {
+    return currentState.state() == Work.State.FAILED;

Review Comment:
   Sounds good. I think that's how I had it in my first iteration of this 
anyway :)



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to