fix bug
Showing
1 changed file
with
2 additions
and
1 deletions
... | @@ -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)) | ... | ... |
-
Please register or sign in to post a comment