Minor fixes to benchmarker.

This commit is contained in:
FiveMovesAhead 2025-11-16 00:58:09 +00:00
parent dd7d94a017
commit 7eec3541c4
2 changed files with 4 additions and 4 deletions

View File

@ -223,9 +223,9 @@ class JobManager:
get_db_conn().execute(
"""
UPDATE job
SET stopped = true
WHERE end_time IS NULL
AND stopped IS NULL
SET stopped = true,
end_time = (EXTRACT(EPOCH FROM NOW()) * 1000)::BIGINT
WHERE (stopped IS NULL OR end_time IS NULL)
AND %s >= block_started + 120
""",
(block.details.height,)

View File

@ -101,7 +101,6 @@
</th>
<th pSortableColumn="status" class="tig-dark text-center">STATUS</th>
<th pSortableColumn="num_attempts" class="tig-dark text-center">#ATTEMPTS</th>
<th pSortableColumn="time_elapsed" class="tig-dark text-center">
ELAPSED
</th>
@ -223,6 +222,7 @@
<th pSortableColumn="status" class="tig-dark text-center">
STATUS
</th>
<th pSortableColumn="num_attempts" class="tig-dark text-center">#ATTEMPTS</th>
<th pSortableColumn="status" class="tig-dark text-center">
ELAPSED
</th>