fix(sync): short sync transactions, real Steam retries, no N+1

This commit is contained in:
lobo committed 2026-09-29 13:27:31 +02:00
1 parent 2a5fcc1c00
commit 2360beeb81
18 files changed
+536 -279

No files matched your search

+7
View File
@@ -87,6 +87,13 @@ resilience4j:
retry-exceptions:
- org.springframework.web.client.RestClientException
- org.springframework.web.client.ResourceAccessException
# A 4xx (a refused key, a private list) is the same on the next try.
ignore-exceptions:
- org.springframework.web.client.HttpClientErrorException
# Calls a page waits for, and the optional wishlist: one try, else a Steam outage holds every page (or the
# sync) for three read timeouts.
steamApiOnce:
max-attempts: 1
ratelimiter:
instances:
steamApi:
@@ -0,0 +1,3 @@
-- The claim of a sync is committed on its own now; a RUNNING row is stale by the start of its run, not by the end of
-- the last one.
ALTER TABLE user_steam_sync ADD COLUMN sync_started_at TIMESTAMPTZ;