Skip to content

Commit

Permalink
[SPARK-48858][PYTHON] Remove deprecated setDaemon method call of `T…
Browse files Browse the repository at this point in the history
…hread` in `log_communication.py`

### What changes were proposed in this pull request?

This PR aims to remove deprecated `setDaemon` method call of `Thread` in `log_communication.py`. This is last one used.

### Why are the changes needed?

Clean up deprecated apis.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Pass GA.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #47282 from wayneguow/remove_py_dep.

Authored-by: Wei Guo <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
  • Loading branch information
wayneguow authored and HyukjinKwon committed Jul 11, 2024
1 parent 2e3a6fb commit 633238a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pyspark/ml/torch/log_communication.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def serve_task(port: int) -> None:

self.port = LogStreamingServer._get_free_port(spark_host_address)
self.serve_thread = threading.Thread(target=serve_task, args=(self.port,))
self.serve_thread.setDaemon(True)
self.serve_thread.daemon = True
self.serve_thread.start()

def shutdown(self) -> None:
Expand Down

0 comments on commit 633238a

Please sign in to comment.