mirror of
https://github.com/ail-project/ail-framework.git
synced 2025-01-18 16:36:13 +00:00
chg: [crawler] improve queued error log
This commit is contained in:
parent
2a45cfd75c
commit
8404f1fdb5
2 changed files with 1 additions and 2 deletions
|
@ -184,7 +184,7 @@ class Crawler(AbstractModule):
|
|||
task = capture.get_task()
|
||||
task.reset()
|
||||
capture.delete()
|
||||
self.logger.warning(f'capture QUEUED Timeout, {task.uuid} Send back in queue, start_time={capture_start}')
|
||||
self.logger.warning(f'capture QUEUED Timeout, {task.uuid}, {task.get_url()} Send back in queue, start_time={capture_start}')
|
||||
else:
|
||||
capture.update(status)
|
||||
print(capture.uuid, crawlers.CaptureStatus(status).name, int(time.time()))
|
||||
|
|
|
@ -427,7 +427,6 @@ def get_ocrs_iterator(filters={}):
|
|||
for instance_uuid in get_chat_service_instances():
|
||||
for chat_id in ChatServiceInstance(instance_uuid).get_chats():
|
||||
chat = Chats.Chat(chat_id, instance_uuid)
|
||||
print(chat.get_correlation('ocr'))
|
||||
for ocr in chat.get_correlation('ocr').get('ocr', []):
|
||||
_, ocr_id = ocr.split(':', 1)
|
||||
yield Ocr(ocr_id)
|
||||
|
|
Loading…
Add table
Reference in a new issue