From d4d40a0b20cffe19c6523d8b3f3e7562b789e318 Mon Sep 17 00:00:00 2001 From: ShenYuhan Date: Thu, 27 Aug 2020 15:56:19 +0800 Subject: [PATCH] fix bug for QUEUE_TIMEOUT (#776) --- visualdl/writer/record_writer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/visualdl/writer/record_writer.py b/visualdl/writer/record_writer.py index 01ea1ad4..6d0b4aa4 100644 --- a/visualdl/writer/record_writer.py +++ b/visualdl/writer/record_writer.py @@ -24,6 +24,8 @@ import threading import os QUEUE_TIMEOUT = os.getenv("VDL_QUEUE_TIMEOUT") +if isinstance(QUEUE_TIMEOUT, str): + QUEUE_TIMEOUT = int(QUEUE_TIMEOUT) class RecordWriter(object): -- GitLab