krz/hutch-stats

Server-side utility for calculating contributions for sourcehut users. contributions server sourcehut stats

Commit 3489797460

3489797460f9f8d19d37806da3b99c6b0baf4cf0

parent: e27bbe17fd

Verified · cmc

cmc <hello@cleberg.net> · 2026-04-12 03:52 UTC

add durable actor queueing and staggered discovery imports

Layout: unified · split

compose.yml +5
@@ -14,10 +14,15 @@ services:
14 DATABASE_URL: sqlite:////data/srht_contrib.db 14 DATABASE_URL: sqlite:////data/srht_contrib.db
15 DEFAULT_ACTOR: ${DEFAULT_ACTOR} 15 DEFAULT_ACTOR: ${DEFAULT_ACTOR}
16 POLL_INTERVAL_SECONDS: ${POLL_INTERVAL_SECONDS:-900} 16 POLL_INTERVAL_SECONDS: ${POLL_INTERVAL_SECONDS:-900}
17 DISCOVERY_BATCH_SIZE: ${DISCOVERY_BATCH_SIZE:-5}
18 INDEXED_ACTOR_REPOLL_SECONDS: ${INDEXED_ACTOR_REPOLL_SECONDS:-21600}
19 DISCOVERY_ERROR_BACKOFF_SECONDS: ${DISCOVERY_ERROR_BACKOFF_SECONDS:-3600}
20 SRHT_REQUEST_DELAY_SECONDS: ${SRHT_REQUEST_DELAY_SECONDS:-0.5}
17 ACTOR_ALIASES_JSON: ${ACTOR_ALIASES_JSON:-{}} 21 ACTOR_ALIASES_JSON: ${ACTOR_ALIASES_JSON:-{}}
18 GIT_TRACKED_REPOSITORIES: ${GIT_TRACKED_REPOSITORIES:-[]} 22 GIT_TRACKED_REPOSITORIES: ${GIT_TRACKED_REPOSITORIES:-[]}
19 volumes: 23 volumes:
20 - hutch-stats-data:/data 24 - hutch-stats-data:/data
25 - ./srht_usernames.txt:/app/srht_usernames.txt:ro
21 restart: unless-stopped 26 restart: unless-stopped
22 27
23volumes: 28volumes: