mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-10 03:51:25 +00:00
17 lines
514 B
SQL
17 lines
514 B
SQL
-- noinspection SqlDialectInspectionForFile
|
|
-- noinspection SqlNoDataSourceInspectionForFile
|
|
-- noinspection SqlResolveForFile
|
|
|
|
-- Unstick old jobs that might be stuck as "started"
|
|
update w2l_template_upload_jobs
|
|
set status='dead'
|
|
where status='started'
|
|
and created_at < ( CURDATE() - INTERVAL 1 DAY );
|
|
|
|
-- Kill pending jobs with tiktok URLs:
|
|
-- These need to be blocked in the server and job directly.
|
|
update w2l_template_upload_jobs
|
|
set status='dead'
|
|
where status='pending'
|
|
and download_url LIKE '%tiktok%';
|