From 6436188b1cd635c14ebfb64ae2df58450d3d006a Mon Sep 17 00:00:00 2001 From: JSONbored <49853598+JSONbored@users.noreply.github.com> Date: Fri, 26 Jun 2026 04:43:02 -0700 Subject: [PATCH] chore(enrichment): pin Serverless-off + teardown timings in railway.json (config-as-code) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Move every Railway setting the schema supports into railway.json so the service is fully config-as-code: numReplicas, healthcheck, restart policy, and now sleepApplication:false (keep the service always-on — reviews call /v1/enrich synchronously, so scale-to-zero cold starts would add latency / risk timeouts) plus overlapSeconds/drainingSeconds (zero-downtime teardown). Root Directory, custom domain, REES_SHARED_SECRET, and Skipped Builds remain UI-only. --- review-enrichment/railway.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/review-enrichment/railway.json b/review-enrichment/railway.json index f04c8ad38c..5f5414c644 100644 --- a/review-enrichment/railway.json +++ b/review-enrichment/railway.json @@ -6,10 +6,13 @@ "watchPatterns": ["review-enrichment/**"] }, "deploy": { + "numReplicas": 1, "healthcheckPath": "/health", "healthcheckTimeout": 60, + "sleepApplication": false, "restartPolicyType": "ON_FAILURE", "restartPolicyMaxRetries": 5, - "numReplicas": 1 + "overlapSeconds": 0, + "drainingSeconds": 15 } }