Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

runtime: Remove max timeout variable #2233

Merged
merged 2 commits into from
Jul 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG_UNRELEASED.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

### Runtime

- (impv) [\#2233](https://github.com/bandprotocol/bandchain/pull/2233) Remove max timeout variable.
- (impv) [\#2230](https://github.com/bandprotocol/bandchain/pull/2230) Update lambda function follow Remote data source executor.

### Owasm
Expand Down
3 changes: 0 additions & 3 deletions runtime/lambda/lambda_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ def lambda_handler(event, context):

MAX_EXECUTABLE = get_env(env, "MAX_EXECUTABLE")
MAX_DATA_SIZE = get_env(env, "MAX_DATA_SIZE")
MAX_TIMEOUT = get_env(env, "MAX_TIMEOUT")

if "executable" not in body:
return bad_request("Missing executable value")
Expand All @@ -66,8 +65,6 @@ def lambda_handler(event, context):
timeout = int(body["timeout"])
except ValueError:
return bad_request("Timeout format invalid")
if timeout > MAX_TIMEOUT:
return bad_request("Timeout exceeded")

path = "/tmp/execute.sh"
with open(path, "w") as f:
Expand Down