feat(server): add keep-alive ping to prevent PaaS services from sleeping#2
Open
devin-ai-integration[bot] wants to merge 1 commit into
Open
feat(server): add keep-alive ping to prevent PaaS services from sleeping#2devin-ai-integration[bot] wants to merge 1 commit into
devin-ai-integration[bot] wants to merge 1 commit into
Conversation
Adds configurable keep-alive pings that periodically hit URLs to prevent Render, Railway, and other PaaS free-tier services from going idle. Configuration: - KEEP_ALIVE_ENABLED: enable/disable (default: false) - KEEP_ALIVE_INTERVAL: ping interval in minutes (default: 10) - KEEP_ALIVE_URLS: comma-separated external URLs to ping (e.g. BotWave) - SERVER_URL is always included automatically when enabled Co-Authored-By: Chris Tolu <eksucampusmarketplace@gmail.com>
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
12 tasks
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.
📋 Description
Adds a configurable keep-alive ping mechanism that periodically hits URLs to prevent PaaS free-tier services (Render, Railway, etc.) from going idle/sleeping.
When enabled, the server will:
SERVER_URLautomaticallyKEEP_ALIVE_URLS(e.g. a BotWave deployment)Configuration (env vars)
KEEP_ALIVE_ENABLEDfalseKEEP_ALIVE_INTERVAL10KEEP_ALIVE_URLSExample usage on Render
🧪 Type of Change
🧪 Testing
tsc --noEmit)npm run lint:check)✅ Checklist
Link to Devin session: https://app.devin.ai/sessions/812442be799c4cd59ca9c40eee75263b
Requested by: @eksucampusmarketplace-cell