idle timeout and status messags

This commit is contained in:
dal 2025-09-02 15:29:55 -06:00
parent 81d5c2d2df
commit 2113e40d0e
No known key found for this signature in database
GPG Key ID: 16F4B0E1E9F61122
2 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,7 @@ export const POLLING_CONFIG = {
MAX_DURATION_MS: 30 * 60 * 1000, // 30 minutes max
BACKOFF_MULTIPLIER: 1.2, // Gradually increase interval
MAX_INTERVAL_MS: 15000, // Max 15 seconds between checks
STATUS_UPDATE_INTERVAL_MS: 30000, // Send status update every 30 seconds
STATUS_UPDATE_INTERVAL_MS: 5000, // Send status update every 5 seconds
} as const;
// SSE configuration

View File

@ -67,5 +67,6 @@ export default {
port,
hostname: '0.0.0.0', // Bind to all interfaces for Docker
fetch: app.fetch,
idleTimeout: 120, // 120 seconds idle timeout (resets on each SSE message)
};
export type AppType = typeof routes;