From 532431035c8ff45903003f6ecc45179ea6e53ff8 Mon Sep 17 00:00:00 2001 From: "fnorosa@posteo.net" Date: Thu, 5 Oct 2023 14:30:30 +0200 Subject: [PATCH] linting --- postgrestq/task_queue.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/postgrestq/task_queue.py b/postgrestq/task_queue.py index 06697c9..f263c83 100644 --- a/postgrestq/task_queue.py +++ b/postgrestq/task_queue.py @@ -479,9 +479,9 @@ def prune_completed_tasks(self, before: int) -> None: cursor.execute( sql.SQL( """ - DELETE FROM {} - WHERE queue_name = %s - AND completed_at IS NOT NULL + DELETE FROM {} + WHERE queue_name = %s + AND completed_at IS NOT NULL AND processing = false AND completed_at < NOW() - CAST( %s || ' seconds' AS INTERVAL);