Add anlytics info and search to logs page

This commit is contained in:
Peter Stockings
2025-07-25 15:46:56 +10:00
parent 8f2838f920
commit d1f8f825c3
8 changed files with 116 additions and 18 deletions

View File

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