adjust timeout length for startup

This commit is contained in:
2025-06-04 17:04:31 -06:00
parent 98b3a35e3c
commit 340a574325
2 changed files with 3 additions and 3 deletions

View File

@@ -14,8 +14,8 @@ import { logger } from "./utils/logger";
const platform = process.env.VITE_PLATFORM;
const pwa_enabled = process.env.VITE_PWA_ENABLED === "true";
logger.error("Platform", { platform });
logger.error("PWA enabled", { pwa_enabled });
logger.log("Platform", { platform });
logger.log("PWA enabled", { pwa_enabled });
// Global Error Handler
function setupGlobalErrorHandler(app: VueApp) {

View File

@@ -94,7 +94,7 @@ export class ElectronPlatformService implements PlatformService {
// SQLite initialization configuration
private static readonly SQLITE_CONFIG = {
INITIALIZATION: {
TIMEOUT_MS: 10000, // 10 seconds for initial setup
TIMEOUT_MS: 1000, // with retries, stay under 5 seconds
RETRY_ATTEMPTS: 3,
RETRY_DELAY_MS: 1000,
READY_CHECK_INTERVAL_MS: 100, // How often to check if SQLite is already ready