Fix job_run_details_cleanup_fn

This commit is contained in:
xbgmsharp
2023-10-11 17:20:08 +02:00
parent 047f243758
commit 572f0cd19d

View File

@@ -354,7 +354,7 @@ DECLARE
BEGIN
-- Remove job run log older than 3 months
RAISE NOTICE 'job_run_details_cleanup_fn';
DELETE FROM postgres.cron.job_run_details
DELETE FROM cron.job_run_details
WHERE start_time <= NOW() AT TIME ZONE 'UTC' - INTERVAL '91 DAYS';
END;
$$ language plpgsql;