fix: FEDISEER_IGNORE_POLL_FAILS

pull/36/head
db0 2023-09-24 18:36:35 +02:00
parent 309feafd36
commit 8a893be55b
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ if __name__ == "__main__":
for instance in database.get_all_instances(0,0): for instance in database.get_all_instances(0,0):
if instance.software == 'wildcard': if instance.software == 'wildcard':
continue continue
if instance.poll_failures >= int(os.getenv('FEDISEER_IGNORE_POLL_FAILS', 0)): if instance.poll_failures > int(os.getenv('FEDISEER_IGNORE_POLL_FAILS', 0)):
logger.debug(f"Skipped {instance.domain} due to too many poll fails.") logger.debug(f"Skipped {instance.domain} due to too many poll fails.")
continue continue
futures.append(executor.submit(refresh_info, instance.domain)) futures.append(executor.submit(refresh_info, instance.domain))