Browse Source

adjust timeout length for startup

sql-absurd-sql-further
Trent Larson 3 days ago
parent
commit
340a574325
  1. 4
      src/main.common.ts
  2. 2
      src/services/platforms/ElectronPlatformService.ts

4
src/main.common.ts

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

2
src/services/platforms/ElectronPlatformService.ts

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

Loading…
Cancel
Save