ADD:log
Showing
1 changed file
with
2 additions
and
0 deletions
... | @@ -2149,7 +2149,9 @@ class BatchReOcrView(GenericView, DocHandler): | ... | @@ -2149,7 +2149,9 @@ class BatchReOcrView(GenericView, DocHandler): |
2149 | docs = doc_class.objects.filter(status=2, create_time__range=(start_of_day, end_of_day)) | 2149 | docs = doc_class.objects.filter(status=2, create_time__range=(start_of_day, end_of_day)) |
2150 | 2150 | ||
2151 | # 遍历 | 2151 | # 遍历 |
2152 | time_stamp = time.time() | ||
2152 | for doc in docs.iterator(): | 2153 | for doc in docs.iterator(): |
2154 | self.running_log.info('[batch doc reocr timestamp={0}] [doc_id={1}]'.format(time_stamp, doc.id)) | ||
2153 | 2155 | ||
2154 | # 3. 选择队列进入 | 2156 | # 3. 选择队列进入 |
2155 | is_priority = PriorityApplication.objects.filter(application_id=doc.application_id, on_off=True).exists() | 2157 | is_priority = PriorityApplication.objects.filter(application_id=doc.application_id, on_off=True).exists() | ... | ... |
-
Please register or sign in to post a comment