config: allow ppf.threads = 0 to disable URL cycling
This commit is contained in:
@@ -45,10 +45,10 @@ class Config(ComboParser):
|
|||||||
# Validate thread counts (0 allowed for watchd to disable local testing)
|
# Validate thread counts (0 allowed for watchd to disable local testing)
|
||||||
if self.watchd.threads < 0:
|
if self.watchd.threads < 0:
|
||||||
errors.append('watchd.threads must be >= 0')
|
errors.append('watchd.threads must be >= 0')
|
||||||
if self.ppf.threads < 1:
|
if self.ppf.threads < 0:
|
||||||
errors.append('ppf.threads must be >= 1')
|
errors.append('ppf.threads must be >= 0')
|
||||||
if self.scraper.threads < 1:
|
if self.scraper.enabled and self.scraper.threads < 1:
|
||||||
errors.append('scraper.threads must be >= 1')
|
errors.append('scraper.threads must be >= 1 when scraper is enabled')
|
||||||
|
|
||||||
# Validate max_fail
|
# Validate max_fail
|
||||||
if self.watchd.max_fail < 1:
|
if self.watchd.max_fail < 1:
|
||||||
|
|||||||
Reference in New Issue
Block a user