Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
furosa committed Oct 5, 2023
1 parent 2c4ee72 commit 5324310
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions postgrestq/task_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5324310

Please sign in to comment.