Add anlytics info and search to logs page
This commit is contained in:
@@ -55,14 +55,15 @@ async def execute_timer_function_async(timer_function):
|
||||
|
||||
# Record the invocation
|
||||
db.execute("""
|
||||
INSERT INTO timer_function_invocations
|
||||
(timer_function_id, status, logs, version_number)
|
||||
VALUES (%s, %s, %s, %s)
|
||||
INSERT INTO timer_function_invocations
|
||||
(timer_function_id, status, logs, version_number, execution_time)
|
||||
VALUES (%s, %s, %s, %s, %s)
|
||||
""", [
|
||||
timer_function['id'],
|
||||
response_data['status'],
|
||||
json.dumps(response_data['logs']),
|
||||
version_number
|
||||
version_number,
|
||||
response_data.get('execution_time')
|
||||
], commit=True)
|
||||
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user