mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-03 00:47:53 +00:00
add more timing stats to the jobs tables
This commit is contained in:
1 parent
a5ce9a3cc4
commit
d1d208d714
5 files changed
+30
-1
No files matched your search
@@ -15,7 +15,10 @@ and success_execution_millis IS NOT NULL
|
||||
order by id desc
|
||||
limit 50;
|
||||
|
||||
-- Same, but with usernames
|
||||
|
||||
-- Detailed report on most recent jobs, ordered by worst performing.
|
||||
-- TODO: Determine if the problem is in downloading models. Make sure the job timer doesn't include
|
||||
-- sections where models / files get downloaded.
|
||||
select *
|
||||
from (
|
||||
select
|
||||
@@ -42,6 +45,7 @@ from (
|
||||
) as t
|
||||
order by execution_minutes desc;
|
||||
|
||||
|
||||
-- Get pending so-vits-svc jobs
|
||||
select count(*)
|
||||
from generic_inference_jobs
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
-- noinspection SqlDialectInspectionForFile
|
||||
-- noinspection SqlNoDataSourceInspectionForFile
|
||||
-- noinspection SqlResolveForFile
|
||||
|
||||
ALTER TABLE generic_download_jobs DROP COLUMN success_inference_execution_millis;
|
||||
ALTER TABLE generic_inference_jobs DROP COLUMN success_inference_execution_millis;
|
||||
@@ -0,0 +1,11 @@
|
||||
-- noinspection SqlDialectInspectionForFile
|
||||
-- noinspection SqlNoDataSourceInspectionForFile
|
||||
-- noinspection SqlResolveForFile
|
||||
|
||||
ALTER TABLE generic_download_jobs
|
||||
ADD COLUMN success_inference_execution_millis INT(10) UNSIGNED DEFAULT NULL
|
||||
AFTER success_execution_millis;
|
||||
|
||||
ALTER TABLE generic_inference_jobs
|
||||
ADD COLUMN success_inference_execution_millis INT(10) UNSIGNED DEFAULT NULL
|
||||
AFTER success_execution_millis;
|
||||
@@ -96,6 +96,10 @@ CREATE TABLE generic_download_jobs (
|
||||
-- derived execution time analytics with it.
|
||||
success_execution_millis INT(10) UNSIGNED DEFAULT NULL,
|
||||
|
||||
-- This is only the inference portion and does not include downloads, uploads,
|
||||
-- or any subsequent processing.
|
||||
success_inference_execution_millis INT(10) UNSIGNED DEFAULT NULL,
|
||||
|
||||
-- Worker hostname (linux hostname, k8s pod name)
|
||||
-- Assigned when a worker picks up the job
|
||||
-- Reassigned if the job fails and gets picked up again
|
||||
|
||||
@@ -153,6 +153,10 @@ CREATE TABLE generic_inference_jobs (
|
||||
-- derived execution time analytics with it.
|
||||
success_execution_millis INT(10) UNSIGNED DEFAULT NULL,
|
||||
|
||||
-- This is only the inference portion and does not include downloads, uploads,
|
||||
-- or any subsequent processing.
|
||||
success_inference_execution_millis INT(10) UNSIGNED DEFAULT NULL,
|
||||
|
||||
-- TODO: Remove once `assigned_worker` column is added
|
||||
-- and existing queries for this column are removed.
|
||||
-- The last worker (hostname or pod name) to touch the job, either in the case of success or failure.
|
||||
|
||||
Reference in new issue
Block a user