chore(enrichment): pin Serverless-off + teardown timings in railway.json (config-as-code) - #1486
Merged
Merged
Conversation
…son (config-as-code) 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.
Contributor
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves every Railway setting the schema supports into
review-enrichment/railway.jsonso the REES is fully config-as-code:numReplicas,healthcheckPath/healthcheckTimeout,restartPolicyType/restartPolicyMaxRetries(existing)sleepApplication: false— keep always-on;/v1/enrichis called synchronously during reviews, so scale-to-zero cold starts would add latency / risk timeoutsoverlapSeconds: 0,drainingSeconds: 15— zero-downtime teardownRoot Directory, the custom domain,
REES_SHARED_SECRET, and Skipped Builds stay UI-only (not expressible in railway.json).Follow-up to #1485.