increase global timeout to 9s to prevent timeouts and graceful fallback sooner at 7.25s
This commit is contained in:
parent
f3863719b5
commit
512feb0268
@ -64,7 +64,7 @@ const FALLBACK_CALLBACK: CallbackResult = [null, REJECT_RESPONSE];
|
|||||||
|
|
||||||
const MINIMUM_MS_TO_SEND_RESPONSE: number = 250;
|
const MINIMUM_MS_TO_SEND_RESPONSE: number = 250;
|
||||||
const FUNCTION_MAXIMUM_DURATION_MS: number = 10_000;
|
const FUNCTION_MAXIMUM_DURATION_MS: number = 10_000;
|
||||||
const INNER_HANDLER_MAXIMUM_DURATION_MS: number = 8_500;
|
const INNER_HANDLER_MAXIMUM_DURATION_MS: number = 9_000;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A decorator for twilio handlers. It provides a metrics registry and
|
* A decorator for twilio handlers. It provides a metrics registry and
|
||||||
|
|||||||
@ -123,7 +123,7 @@ export const handler: ServerlessFunctionSignature<TwilioContext, BuzzerDialEvent
|
|||||||
invokeId + " GracefulFallbackPromise: dropping out of the race, another response is already underway"
|
invokeId + " GracefulFallbackPromise: dropping out of the race, another response is already underway"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}, 7500));
|
}, 7_250));
|
||||||
});
|
});
|
||||||
|
|
||||||
// provide a method to the decorator to use as a fast fallback that shouldn't have any await
|
// provide a method to the decorator to use as a fast fallback that shouldn't have any await
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user