apache / apache/beam

Timer parameter not supported in timer callback

Open
#19,432 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.