You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Yifan Mai (JIRA)" <ji...@apache.org> on 2019/02/25 18:14:00 UTC
[jira] [Created] (BEAM-6746) Support DoFn.setup and DoFn.teardown
in Python
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)