ppf: skip URL cycling when ppf.threads = 0
This commit is contained in:
5
ppf.py
5
ppf.py
@@ -954,6 +954,11 @@ def main():
|
||||
last_skip_log = 0
|
||||
while True:
|
||||
try:
|
||||
# When ppf threads = 0, skip URL fetching (workers handle it via /api/claim-urls)
|
||||
if config.ppf.threads == 0:
|
||||
time.sleep(60)
|
||||
continue
|
||||
|
||||
time.sleep(random.random()/10)
|
||||
if (time.time() - statusmsg) > 180:
|
||||
_log('running %d thread(s) over %d' % (len(threads), config.ppf.threads), 'ppf')
|
||||
|
||||
Reference in New Issue
Block a user