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/03/04 17:29:00 UTC

[jira] [Closed] (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 closed BEAM-6746.
---------------------------
       Resolution: Duplicate
    Fix Version/s: Not applicable

Looks like this was already filed as BEAM-562

> 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
>             Fix For: Not applicable
>
>
> 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)