krz/hutch-stats

Server-side utility for calculating contributions for sourcehut users.

clone: git clone https://gitbay.org/krz/hutch-stats.git

3489797460f9f8d19d37806da3b99c6b0baf4cf0

verified · cmc

author: Christian Cleberg <hello@cleberg.net> · 2026-04-12T03:52:17Z

add durable actor queueing and staggered discovery imports
 compose.yml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/compose.yml b/compose.yml
index 3ec0560..74fd9cf 100644
--- a/compose.yml
+++ b/compose.yml
@@ -14,10 +14,15 @@ services:
       DATABASE_URL: sqlite:////data/srht_contrib.db
       DEFAULT_ACTOR: ${DEFAULT_ACTOR}
       POLL_INTERVAL_SECONDS: ${POLL_INTERVAL_SECONDS:-900}
+      DISCOVERY_BATCH_SIZE: ${DISCOVERY_BATCH_SIZE:-5}
+      INDEXED_ACTOR_REPOLL_SECONDS: ${INDEXED_ACTOR_REPOLL_SECONDS:-21600}
+      DISCOVERY_ERROR_BACKOFF_SECONDS: ${DISCOVERY_ERROR_BACKOFF_SECONDS:-3600}
+      SRHT_REQUEST_DELAY_SECONDS: ${SRHT_REQUEST_DELAY_SECONDS:-0.5}
       ACTOR_ALIASES_JSON: ${ACTOR_ALIASES_JSON:-{}}
       GIT_TRACKED_REPOSITORIES: ${GIT_TRACKED_REPOSITORIES:-[]}
     volumes:
       - hutch-stats-data:/data
+      - ./srht_usernames.txt:/app/srht_usernames.txt:ro
     restart: unless-stopped
 
 volumes: