mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-09 03:21:23 +00:00
analytics queries
This commit is contained in:
1 parent
ec1f5edd5c
commit
999d73db81
1 file changed
+13
-4
@@ -44,19 +44,28 @@ set status = 'dead'
|
||||
where status IN ('pending', 'started', 'attempt_failed');
|
||||
|
||||
-- Sample the pending inference text
|
||||
select creator_ip_address, maybe_creator_user_token, raw_inference_text
|
||||
select creator_ip_address,
|
||||
model_token,
|
||||
maybe_creator_user_token,
|
||||
raw_inference_text
|
||||
from tts_inference_jobs
|
||||
where status = 'pending';
|
||||
|
||||
-- Sample the pending inference text (truncated)
|
||||
select creator_ip_address,
|
||||
model_token,
|
||||
maybe_creator_user_token,
|
||||
TRIM(REPLACE(SUBSTRING(raw_inference_text, 1, 50), '\n', ''))
|
||||
from tts_inference_jobs
|
||||
where status = 'pending';
|
||||
where status = 'pending'
|
||||
limit 100;
|
||||
|
||||
-- Sample long pending texts
|
||||
select creator_ip_address, maybe_creator_user_token, raw_inference_text
|
||||
select creator_ip_address,
|
||||
model_token,
|
||||
maybe_creator_user_token,
|
||||
raw_inference_text
|
||||
from tts_inference_jobs
|
||||
where status = 'pending'
|
||||
and length(raw_inference_text) > 100;
|
||||
and length(raw_inference_text) > 100
|
||||
limit 100;
|
||||
Reference in new issue
Block a user