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/27 00:38:00 UTC
[jira] [Updated] (BEAM-6746) Support DoFn.setup and DoFn.teardown
in Python
[ https://issues.apache.org/jira/browse/BEAM-6746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yifan Mai updated BEAM-6746:
----------------------------
Issue Type: Improvement (was: Bug)
> Support DoFn.setup and DoFn.teardown in Python
> ----------------------------------------------
>
> Key: BEAM-6746
> URL: https://issues.apache.org/jira/browse/BEAM-6746
> Project: Beam
> Issue Type: Improvement
> Components: beam-model, sdk-py-core
> Reporter: Yifan Mai
> Priority: Major
>
> 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)