mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 17:38:10 +00:00
17 lines
537 B
SQL
17 lines
537 B
SQL
-- noinspection SqlDialectInspectionForFile
|
|
-- noinspection SqlNoDataSourceInspectionForFile
|
|
-- noinspection SqlResolveForFile
|
|
|
|
-- Get a count of pending jobs
|
|
select count(*) from w2l_template_upload_jobs where status='pending';
|
|
|
|
-- See pending download URLs:
|
|
select download_url from w2l_template_upload_jobs where status IN ('pending', 'started', 'attempt_failed');
|
|
|
|
-- See old jobs that might be stuck as "started"
|
|
select count(*)
|
|
from w2l_template_upload_jobs
|
|
where status='started'
|
|
and created_at < ( CURDATE() - INTERVAL 1 DAY );
|
|
|