adjust timeout length for startup
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user