refactor: address latest review comments

Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
Camila Belo
2024-12-09 18:43:38 +01:00
parent ad39962dc9
commit d0cbd82965
6 changed files with 144 additions and 24 deletions
+4 -2
View File
@@ -31,14 +31,16 @@ export interface Config {
lifecycle?: {
/**
* The maximum time that paused requests will wait for the service to start, before returning an error.
* If you pass a number or string, it will be interpreted as milliseconds.
* Defaults to 5 seconds.
*/
startupRequestPauseTimeout?: HumanDuration;
startupRequestPauseTimeout?: number | string | HumanDuration;
/**
* The maximum time that the server will wait for stop accepting traffic, before returning an error.
* If you pass a number or string, it will be interpreted as milliseconds.
* Defaults to 30 seconds.
*/
shutdownRequestPauseTimeout?: HumanDuration;
shutdownRequestDelayTimeout?: number | string | HumanDuration;
};
/** Address that the backend should listen to. */