diff --git a/lib/storage/service.ts b/lib/storage/service.ts index 6e3b130c9..96ae55bea 100644 --- a/lib/storage/service.ts +++ b/lib/storage/service.ts @@ -45,7 +45,7 @@ export type StorageUploadFunction = ( let lastKnownGoodDbS3Config: S3UploadConfig | null = null; const STORAGE_FAILOVER_CONFIG_KEY = "storage_failover_config"; -const DEFAULT_S3_REQUEST_TIMEOUT_MS = 30_000; +const DEFAULT_S3_REQUEST_TIMEOUT_MS = 180_000; function getStorageTimeoutMs(name: string, fallback: number, min: number, max: number) { const parsed = Number(process.env[name]); @@ -262,7 +262,7 @@ async function uploadToS3( "S3_UPLOAD_REQUEST_TIMEOUT_MS", DEFAULT_S3_REQUEST_TIMEOUT_MS, 5_000, - 120_000 + 300_000 ), "S3 upload" );