Skip to content

spark-submit job is not exiting until I hit ctrl+C if I use Check class #7

Description

@bruce32118

Is your feature request related to a problem? Please describe.

spark-submit job is not exiting until I hit ctrl+C if I use Check function

Describe the solution you'd like

Check function would start a self._spark_session.sparkContext._gateway server. If my code is completed, the server is still hang on that causes the spark job can't stop normally.

Adding a close function to class Check

def close(self):
self._spark_session.sparkContext._gateway.close()
return

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions