You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Raman Gupta (Jira)" <ji...@apache.org> on 2021/08/31 19:14:00 UTC
[jira] [Commented] (BEAM-7167) Unable to cancel a DoFn Timer
[ https://issues.apache.org/jira/browse/BEAM-7167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17407607#comment-17407607 ]
Raman Gupta commented on BEAM-7167:
-----------------------------------
Fixed in 2.32.0 right? https://beam.apache.org/releases/javadoc/2.32.0/org/apache/beam/sdk/state/Timer.html#clear--
> Unable to cancel a DoFn Timer
> -----------------------------
>
> Key: BEAM-7167
> URL: https://issues.apache.org/jira/browse/BEAM-7167
> Project: Beam
> Issue Type: Bug
> Components: beam-model
> Affects Versions: 2.12.0
> Reporter: Neil Kolban
> Priority: P3
>
> The following was raised on [Stackoverflow|[https://stackoverflow.com/questions/55875832/how-to-cancel-unset-a-dofn-defined-timer]]:
>
> Having read [Timely (and Stateful) Processing with Apache Beam|https://beam.apache.org/blog/2017/08/28/timely-processing.html] and looked at the JavaDoc for a [Timer|https://beam.apache.org/releases/javadoc/2.12.0/org/apache/beam/sdk/state/Timer.html], I have successfully setup a timer to be fired. However, I am missing how to request that a timer be cancelled before it has fired. Is this a semantic that is possible / allowable in Beam architecture?
> My back-story is that I wish to register a timer to fire a callback if something has not occurred ... but if it HAS occurred prior to the timer firing, then I wish to cancel the timer from being fired.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)