82e0a207 by 周伟奇

fix bug

1 parent 85a7f363
......@@ -32,7 +32,7 @@ class Command(BaseCommand, LoggerMixin):
# 处理文件开关
self.switch = True
# 睡眠时间
self.sleep_time = conf.SLEEP_SECOND
self.sleep_time = int(conf.SLEEP_SECOND)
# 数据目录
self.data_dir = conf.DATA_DIR
# ocr相关
......@@ -635,6 +635,7 @@ class Command(BaseCommand, LoggerMixin):
for p in process_list:
p.start()
for p in process_list:
p.join()
self.cronjob_log.info('{0} [stop safely]'.format(self.log_base))
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!