[Bug]: runtime_type_check breaks stateful processing with timers #27167
Labels
bug
done & done
Issue has been reviewed after it was closed for verification, followups, etc.
P2
python
types
Milestone
What happened?
When executing a pipeline with the
DirectRunner
, using--runtime_type_check True
, it is impossible to use timers like in the examples provided by https://beam.apache.org/blog/timely-processing/It will end up in the following error:
I did some prints to understand what is happening, it seems like the runtime type check wraps the DoFn with a
apache_beam.typehints.typecheck.OutputCheckWrapperDoFn
, preventing the following code to work:Because the annotated method is not found on the wrapper.
Issue Priority
Priority: 2 (default / most bugs should be filed as P2)
Issue Components
The text was updated successfully, but these errors were encountered: