async fetch to limit load

This commit is contained in:
2025-05-17 23:35:13 +02:00
parent 883b53dbb2
commit 2b9d37cc2f
4 changed files with 27 additions and 5 deletions

View File

@@ -107,7 +107,7 @@ def check_and_log_overages():
db.add(event)
db.commit()
db.close()
time.sleep(10)
time.sleep(60)
threading.Thread(target=check_and_log_overages, daemon=True).start()