[ 
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)

Reply via email to