Increased timeout limit
This commit is contained in:
@@ -81,6 +81,15 @@ def parse_args() -> argparse.Namespace:
|
||||
default=False,
|
||||
help="Disable Server header in responses (default: False)",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--timeout-graceful-shutdown",
|
||||
type=int,
|
||||
default=300,
|
||||
help=(
|
||||
"Graceful shutdown timeout in seconds. Workers have this long to finish "
|
||||
"background tasks before being killed (default: 300)"
|
||||
),
|
||||
)
|
||||
|
||||
return parser.parse_args()
|
||||
|
||||
@@ -112,4 +121,5 @@ if __name__ == "__main__":
|
||||
forwarded_allow_ips=args.forwarded_allow_ips,
|
||||
proxy_headers=args.proxy_headers,
|
||||
server_header=not args.no_server_header,
|
||||
timeout_graceful_shutdown=args.timeout_graceful_shutdown,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user