From c3b4ae15b15298cb350c43e9aa49519ae2f79263 Mon Sep 17 00:00:00 2001 From: Tony Tung Date: Tue, 24 Oct 2017 21:35:39 -0700 Subject: [PATCH] Fix timeouts for invocations on the command line. (#558) --- chalice/.chalice/config.json | 3 ++- dss-api | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/chalice/.chalice/config.json b/chalice/.chalice/config.json index 53e72bf3c5..76b06dccf2 100644 --- a/chalice/.chalice/config.json +++ b/chalice/.chalice/config.json @@ -11,5 +11,6 @@ "environment_variables": { } } - } + }, + "lambda_timeout": 300 } diff --git a/dss-api b/dss-api index 34a9c77ace..fefd6fb9e8 100755 --- a/dss-api +++ b/dss-api @@ -36,6 +36,8 @@ factory = CLIFactory(project_dir=args.project_dir, debug=args.debug) config = factory.create_config_obj( chalice_stage_name=os.environ["DSS_DEPLOYMENT_STAGE"] ) +# TODO: Remove this hack when https://github.com/aws/chalice/pull/579 is pulled into our repo. +config._user_provided_params['lambda_timeout'] = 30000 app_obj = factory.load_chalice_app() # When running `chalice local`, a stdout logger is configured # so you'll see the same stdout logging as you would when