Skip to content

Commit

Permalink
Fix timeouts for invocations on the command line.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Tung committed Oct 24, 2017
1 parent d8caedc commit a327d34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chalice/.chalice/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
"environment_variables": {
}
}
}
},
"lambda_timeout": 300
}
2 changes: 2 additions & 0 deletions chalice/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ def wrapper(*args, **kwargs):
future = executor.submit(method, *args, **kwargs)
time_remaining_s = chalice_app._override_exptime_seconds # type: typing.Optional[float]
if time_remaining_s is None:
import pdb
pdb.set_trace()
time_remaining_s = min(
API_GATEWAY_TIMEOUT_SECONDS,
chalice_app.lambda_context.get_remaining_time_in_millis() / 1000)
Expand Down

0 comments on commit a327d34

Please sign in to comment.