py4j / py4j

Py4J enables Python programs to dynamically access arbitrary Java objects

Home Page:https://www.py4j.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Question] How to tell from the Java side that the Python process has terminated?

pkeller opened this issue · comments

I am working on an application that uses the method of Initiating the communication from the Java side:Using ClientServer. Sometimes the Python application exits prematurely, and the Java application then gets stuck. Is there a way of checking from the Java side whether or not the Python application is still available? I have not found anything in the docs to help with this.

If necessary, I could change the connection method, although the one that we are using suits the application very well.

It could be that the solutions discussed in this issue can help you: #320