82e0a207 by 周伟奇

fix bug

1 parent 85a7f363
...@@ -32,7 +32,7 @@ class Command(BaseCommand, LoggerMixin): ...@@ -32,7 +32,7 @@ class Command(BaseCommand, LoggerMixin):
32 # 处理文件开关 32 # 处理文件开关
33 self.switch = True 33 self.switch = True
34 # 睡眠时间 34 # 睡眠时间
35 self.sleep_time = conf.SLEEP_SECOND 35 self.sleep_time = int(conf.SLEEP_SECOND)
36 # 数据目录 36 # 数据目录
37 self.data_dir = conf.DATA_DIR 37 self.data_dir = conf.DATA_DIR
38 # ocr相关 38 # ocr相关
...@@ -635,6 +635,7 @@ class Command(BaseCommand, LoggerMixin): ...@@ -635,6 +635,7 @@ class Command(BaseCommand, LoggerMixin):
635 635
636 for p in process_list: 636 for p in process_list:
637 p.start() 637 p.start()
638 for p in process_list:
638 p.join() 639 p.join()
639 640
640 self.cronjob_log.info('{0} [stop safely]'.format(self.log_base)) 641 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!