Timer parameter not supported in timer callback
Open
bug
harness
P3
portability
python
- Dominant language
- Java
- Stars
- 8.7k
- Forks
- 4.7k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 196
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](https://github.com/apache/beam/blob/cbe4dfbdbe5d0da5152568853ee5e17334dd1b54/sdks/python/apache_beam/transforms/userstate_test.py#L67)
Imported from Jira [BEAM-7127](https://issues.apache.org/jira/browse/BEAM-7127). Original Jira may contain additional context.
Reported by: thw.
Contributor guide
Assessment
This issue has not been assessed yet.