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

Timer parameter not supported in timer callback

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.12.0
    • Fix Version/s: None
    • Component/s: sdk-py-harness
    • Labels:

      Description

      Referencing the timer in its on_timer callback produces a recursive pickle error.  

      @userstate.on_timer(timer_spec)
      def process_timer(self, timer_1=beam.DoFn.TimerParam(timer_spec)):
      

      Unit test: https://github.com/apache/beam/blob/cbe4dfbdbe5d0da5152568853ee5e17334dd1b54/sdks/python/apache_beam/transforms/userstate_test.py#L67 

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                thw Thomas Weise
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: