mirror of
https://github.com/simon987/od-database.git
synced 2025-04-19 18:36:44 +00:00
Empty queue timeout increased to avoid that all workers die before the website is dropped
This commit is contained in:
parent
d3801adf74
commit
d43cf3b0ce
@ -140,7 +140,7 @@ class RemoteDirectoryCrawler:
|
|||||||
|
|
||||||
while directory:
|
while directory:
|
||||||
try:
|
try:
|
||||||
path = in_q.get(timeout=150)
|
path = in_q.get(timeout=2000)
|
||||||
except Empty:
|
except Empty:
|
||||||
logger.debug("in_q is Empty")
|
logger.debug("in_q is Empty")
|
||||||
directory.close()
|
directory.close()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user