Update environment info for http_function after execution using the data returned from isolator
This commit is contained in:
2
app.py
2
app.py
@@ -210,6 +210,8 @@ def execute_http_function(function):
|
||||
response = requests.post(API_URL, json={'code': code, 'request': request_obj, 'environment': environment})
|
||||
response_data = response.json()
|
||||
|
||||
db.update_http_function_environment_info(function, json.dumps(response_data['environment']))
|
||||
|
||||
# Map the Node.js response to Flask response
|
||||
flask_response = map_isolator_response_to_flask_response(response_data)
|
||||
return flask_response
|
||||
|
||||
Reference in New Issue
Block a user