Yifan Mai created BEAM-6746:
-------------------------------
Summary: Support DoFn.setup and DoFn.teardown in Python
Key: BEAM-6746
URL: https://issues.apache.org/jira/browse/BEAM-6746
Project: Beam
Issue Type: Bug
Components: beam-model, sdk-py-core
Reporter: Yifan Mai
DoFn.setup and DoFn.teardown is currently supported in Java but not Python.
These would be useful for performing expensive per-thread initialization.
While lazy initialization is a usable workaround, first class support for setup
and teardown would encourage consistent conventions and make the API more
uniform with the Java version.
This is related to BEAM-3736 (same issue, but for CombineFn).
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)