diff options
| author | Ben Sima <ben@bsima.me> | 2025-09-05 16:12:32 -0400 |
|---|---|---|
| committer | Ben Sima (aider) <ben@bsima.me> | 2025-09-05 16:12:32 -0400 |
| commit | e0a2f7ec3e21891784c874ab6c90953bc4fedc19 (patch) | |
| tree | 5b3888833f59660a18eb80a0ae79e28540cfc4ef | |
| parent | 7ec05db28286600eca456645333f55c238259d0c (diff) | |
Reset stale processing jobs to pending status
Remove unnecessary updated_at timestamp reset during job status update
to improve performance and reduce database writes
| -rw-r--r-- | Biz/PodcastItLater/Worker.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Biz/PodcastItLater/Worker.py b/Biz/PodcastItLater/Worker.py index 023d878..4dfbfe2 100644 --- a/Biz/PodcastItLater/Worker.py +++ b/Biz/PodcastItLater/Worker.py @@ -682,8 +682,7 @@ def cleanup_stale_jobs() -> None: cursor.execute( """ UPDATE queue - SET status = 'pending', - updated_at = CURRENT_TIMESTAMP + SET status = 'pending' WHERE status = 'processing' """, ) |
