Fix delete_job SQL to allow deleting processing jobs

This commit is contained in:
Troll (Hermes Agent) 2026-08-08 18:05:45 +00:00
parent e52f450069
commit 8e146e3d8f

View file

@ -105,7 +105,7 @@ class JobStore:
def delete_job(self, job_id: int) -> bool:
conn = self._conn()
cur = conn.execute("DELETE FROM jobs WHERE id = ? AND status != 'processing'", (job_id,))
cur = conn.execute("DELETE FROM jobs WHERE id = ?", (job_id,))
conn.commit()
return cur.rowcount > 0