[ https://issues.apache.org/jira/browse/FLINK-21238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dian Fu updated FLINK-21238: ---------------------------- Description: PythonFunctionFactory is used to convert a Python class to a Java PythonFunction representation which could then be used as a user-defined function. Underlying PythonFunctionFactory, there is a Python process which is used to perform the actual conversion work. Currently, the Python process is added to shutdown hook and closed when the JVM exits. The aim of this JIRA is to provide more flexibility for users by introducing a close method to PythonFunctionFactory. This will allow PythonFunctionFactory to be closed manually and periodically which is important when integrating this feature in the platforms. (was: PythonFunctionFactory is used to convert a Python class to a Java PythonFunction representation which could then be used as a user-defined function. Underlying PythonFunctionFactory, there is a Python process which is used to perform the actual conversion work. Currently, the Python process is added to shutdown hook and closed when the JVM exits. The aim of this JIRA is to provide more flexibility for users by introducing a close method to PythonFunctionFactory. This will allow PythonFunctionFactory to be closed manually which is important when integrating this feature in the platforms. ) > Support to close PythonFunctionFactory > -------------------------------------- > > Key: FLINK-21238 > URL: https://issues.apache.org/jira/browse/FLINK-21238 > Project: Flink > Issue Type: Improvement > Components: API / Python > Reporter: Dian Fu > Assignee: Dian Fu > Priority: Major > Labels: pull-request-available > Fix For: 1.13.0 > > > PythonFunctionFactory is used to convert a Python class to a Java > PythonFunction representation which could then be used as a user-defined > function. Underlying PythonFunctionFactory, there is a Python process which > is used to perform the actual conversion work. Currently, the Python process > is added to shutdown hook and closed when the JVM exits. The aim of this JIRA > is to provide more flexibility for users by introducing a close method to > PythonFunctionFactory. This will allow PythonFunctionFactory to be closed > manually and periodically which is important when integrating this feature in > the platforms. -- This message was sent by Atlassian Jira (v8.3.4#803005)