mirror of
https://github.com/ail-project/ail-framework.git
synced 2025-01-18 16:36:13 +00:00
fix: [crawler] increase timeout QUEUED captures
This commit is contained in:
parent
aa2113bc36
commit
afd0d6b7d8
1 changed files with 2 additions and 2 deletions
|
@ -180,11 +180,11 @@ class Crawler(AbstractModule):
|
|||
capture.update(status)
|
||||
elif status == crawlers.CaptureStatus.QUEUED:
|
||||
capture_start = capture.get_start_time(r_str=False)
|
||||
if int(time.time()) - capture_start > 3600: # TODO ADD in new crawler config
|
||||
if int(time.time()) - capture_start > 36000: # TODO ADD in new crawler config
|
||||
task = capture.get_task()
|
||||
task.reset()
|
||||
capture.delete()
|
||||
self.logger.warning(f'capture QUEUED Timeout, {task.uuid} Send back in queue')
|
||||
self.logger.warning(f'capture QUEUED Timeout, {task.uuid} Send back in queue, start_time={capture_start}')
|
||||
else:
|
||||
capture.update(status)
|
||||
print(capture.uuid, crawlers.CaptureStatus(status).name, int(time.time()))
|
||||
|
|
Loading…
Add table
Reference in a new issue