fix: restore longer s3 upload timeout
This commit is contained in:
parent
0405113d52
commit
30eef41dc4
@ -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"
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user