Skip to content

Commit 2136b70

Browse files
committed
update cron job interval to ping health URL every 10 minutes
1 parent fd701c8 commit 2136b70

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ app.listen(PORT, () => {
180180
console.log('Keep-alive cron disabled (no valid HEALTH_URL or RENDER_EXTERNAL_URL set).');
181181
} else {
182182
console.log(`Keep-alive cron enabled: pinging ${healthUrl} every 2 minutes`);
183-
cron.schedule('*/2 * * * *', () => {
183+
cron.schedule('*/10 * * * *', () => {
184184
try {
185185
const started = Date.now();
186186
const urlObj = new URL(healthUrl);

0 commit comments

Comments
 (0)