fix: restore longer s3 upload timeout

This commit is contained in:
134 2026-07-07 23:09:38 +08:00
parent 0405113d52
commit 30eef41dc4

View File

@ -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"
);