mirror of
https://github.com/wassname/ray.git
synced 2026-06-30 20:18:33 +08:00
[Python Worker] Add pid to log file name (#10149)
Co-authored-by: Alex Wu <alex@anyscale.io>
This commit is contained in:
+4
-3
@@ -748,11 +748,12 @@ class Node:
|
||||
return None, None
|
||||
|
||||
if job_id is not None:
|
||||
name = "worker-{}-{}".format(
|
||||
name = "worker-{}-{}-{}".format(
|
||||
ray.utils.binary_to_hex(worker_id),
|
||||
ray.utils.binary_to_hex(job_id))
|
||||
ray.utils.binary_to_hex(job_id), os.getpid())
|
||||
else:
|
||||
name = "worker-{}".format(ray.utils.binary_to_hex(worker_id))
|
||||
name = "worker-{}-{}".format(
|
||||
ray.utils.binary_to_hex(worker_id), os.getpid())
|
||||
|
||||
worker_stdout_file, worker_stderr_file = self._get_log_file_names(
|
||||
name, unique=False)
|
||||
|
||||
Reference in New Issue
Block a user