mirror of
https://github.com/wassname/ray.git
synced 2026-07-01 18:04:09 +08:00
[Logging] Fix log monitor issue (#12588)
* Try fixing issues. * Verficiation.
This commit is contained in:
@@ -133,7 +133,7 @@ class LogMonitor:
|
||||
job_match = JOB_LOG_PATTERN.match(file_path)
|
||||
if job_match:
|
||||
job_id = job_match.group(2)
|
||||
worker_pid = job_match.group(3)
|
||||
worker_pid = int(job_match.group(3))
|
||||
else:
|
||||
job_id = None
|
||||
worker_pid = None
|
||||
@@ -361,4 +361,5 @@ if __name__ == "__main__":
|
||||
f"failed with the following error:\n{traceback_str}")
|
||||
ray.utils.push_error_to_driver_through_redis(
|
||||
redis_client, ray_constants.LOG_MONITOR_DIED_ERROR, message)
|
||||
logger.error(message)
|
||||
raise e
|
||||
|
||||
Reference in New Issue
Block a user