Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-7167

Unable to cancel a DoFn Timer

Details

    • Bug
    • Status: Open
    • P3
    • Resolution: Unresolved
    • 2.12.0
    • None
    • beam-model
    • None

    Description

      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 and looked at the JavaDoc for a Timer, 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kolban Neil Kolban
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: