Update environment info for http_function after execution using the data returned from isolator

This commit is contained in:
Peter Stockings
2023-12-18 15:28:32 +11:00
parent 5cc29309d5
commit efda151cd5
2 changed files with 6 additions and 0 deletions

2
app.py
View File

@@ -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