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
df161cfd64
commit
c82ffdb815
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@ class Crawler(AbstractModule):
|
||||||
capture.update(status)
|
capture.update(status)
|
||||||
elif status == crawlers.CaptureStatus.QUEUED:
|
elif status == crawlers.CaptureStatus.QUEUED:
|
||||||
capture_start = capture.get_start_time(r_str=False)
|
capture_start = capture.get_start_time(r_str=False)
|
||||||
if int(time.time()) - capture_start > 600: # TODO ADD in new crawler config
|
if int(time.time()) - capture_start > 3600: # TODO ADD in new crawler config
|
||||||
task = capture.get_task()
|
task = capture.get_task()
|
||||||
task.reset()
|
task.reset()
|
||||||
capture.delete()
|
capture.delete()
|
||||||
|
|
Loading…
Add table
Reference in a new issue