Reduce bot snapshot frequency

- Shard snapshots now occur every 15 minutes instead of 2 minutes
- Failed shard snapshots now retry after 1 minute instead of 10 seconds
This commit is contained in:
JetRaidz
2023-10-06 19:16:48 +13:00
parent 2a3948420b
commit 0f3a3bd15b

View File

@@ -24,9 +24,9 @@ for name in conf.config.options('LOGGING_LEVELS', no_defaults=True):
class AnalyticsServer: class AnalyticsServer:
# TODO: Move these to the config # TODO: Move these to the config
# How often to request snapshots # How often to request snapshots
snap_period = 120 snap_period = 900
# How soon after a snapshot failure (e.g. not all shards online) to retry # How soon after a snapshot failure (e.g. not all shards online) to retry
snap_retry_period = 10 snap_retry_period = 60
def __init__(self) -> None: def __init__(self) -> None:
self.db = Database(conf.data['args']) self.db = Database(conf.data['args'])