mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 09:28:11 +00:00
37 lines
1.0 KiB
SQL
37 lines
1.0 KiB
SQL
-- noinspection SqlDialectInspectionForFile
|
|
-- noinspection SqlNoDataSourceInspectionForFile
|
|
-- noinspection SqlResolveForFile
|
|
|
|
-- Get pending job count
|
|
select count(*)
|
|
from generic_inference_jobs
|
|
where status = 'pending';
|
|
|
|
-- Kill *ALL* pending / outstanding jobs of any type
|
|
update generic_inference_jobs
|
|
set status = 'dead'
|
|
where status IN ('pending', 'started', 'attempt_failed');
|
|
|
|
-- Kill all routed jobs
|
|
update generic_inference_jobs
|
|
set status = 'dead'
|
|
where maybe_routing_tag IS NOT NULL;
|
|
|
|
-- Kill all Tacotron TTS jobs
|
|
update generic_inference_jobs
|
|
set status = 'dead'
|
|
where status IN ('pending', 'started', 'attempt_failed')
|
|
and maybe_model_type IN ('tacotron2');
|
|
|
|
-- Kill all Sad Talker Face Animation jobs
|
|
update generic_inference_jobs
|
|
set status = 'dead'
|
|
where status IN ('pending', 'started', 'attempt_failed')
|
|
and maybe_model_type IN ('sad_talker');
|
|
|
|
-- Kill all jobs of several types
|
|
update generic_inference_jobs
|
|
set status = 'dead'
|
|
where status IN ('pending', 'started', 'attempt_failed')
|
|
and maybe_model_type IN ('sad_talker', 'so_vits_svc');
|