[Logging] Fix log monitor issue (#12588)

* Try fixing issues.

* Verficiation.
This commit is contained in:
SangBin Cho
2020-12-07 22:01:18 -08:00
committed by GitHub
parent cc2f43c826
commit 162f361dab
3 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -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