shunping opened a new issue, #35771: URL: https://github.com/apache/beam/issues/35771
### What happened? ``` import logging import apache_beam as beam from apache_beam.options.pipeline_options import PipelineOptions from apache_beam.utils.timestamp import Timestamp from apache_beam.utils.timestamp import MIN_TIMESTAMP, MAX_TIMESTAMP from apache_beam.transforms.timeutil import TimeDomain from apache_beam.transforms.userstate import TimerSpec, on_timer logging.basicConfig(level=logging.INFO) options = PipelineOptions([ "--environment_type=LOOPBACK", "--runner=PrismRunner", ]) data = [(0, 0), (1, 1), (2, 0)] class MyDoFn(beam.DoFn): WINDOW_TIMER = TimerSpec('window_timer', TimeDomain.WATERMARK) def __init__(self): pass def process( self, element, window=beam.DoFn.WindowParam, window_timer=beam.DoFn.TimerParam(WINDOW_TIMER), ): print("process is called") window_timer.set(window.end) @on_timer(WINDOW_TIMER) def on_timer(self, key=beam.DoFn.KeyParam): import time time.sleep(1) yield "on_timer called on key %s" % str(key) with beam.Pipeline(options=options) as p: _ = ( p | beam.Create(data) | beam.ParDo(MyDoFn()) | beam.LogElements( level=logging.WARNING, )) ``` ### Issue Priority Priority: 2 (default / most bugs should be filed as P2) ### Issue Components - [ ] Component: Python SDK - [ ] Component: Java SDK - [ ] Component: Go SDK - [ ] Component: Typescript SDK - [ ] Component: IO connector - [ ] Component: Beam YAML - [ ] Component: Beam examples - [ ] Component: Beam playground - [ ] Component: Beam katas - [ ] Component: Website - [ ] Component: Infrastructure - [ ] Component: Spark Runner - [ ] Component: Flink Runner - [ ] Component: Samza Runner - [ ] Component: Twister2 Runner - [ ] Component: Hazelcast Jet Runner - [ ] Component: Google Cloud Dataflow Runner -- 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.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org