Skip to content

Commit afd0d6b

Browse files
committed
fix: [crawler] increase timeout QUEUED captures
1 parent aa2113b commit afd0d6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/crawlers/Crawler.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,11 @@ def get_message(self):
180180
capture.update(status)
181181
elif status == crawlers.CaptureStatus.QUEUED:
182182
capture_start = capture.get_start_time(r_str=False)
183-
if int(time.time()) - capture_start > 3600: # TODO ADD in new crawler config
183+
if int(time.time()) - capture_start > 36000: # TODO ADD in new crawler config
184184
task = capture.get_task()
185185
task.reset()
186186
capture.delete()
187-
self.logger.warning(f'capture QUEUED Timeout, {task.uuid} Send back in queue')
187+
self.logger.warning(f'capture QUEUED Timeout, {task.uuid} Send back in queue, start_time={capture_start}')
188188
else:
189189
capture.update(status)
190190
print(capture.uuid, crawlers.CaptureStatus(status).name, int(time.time()))

0 commit comments

Comments
 (0)