Fix delete_job SQL to allow deleting processing jobs
This commit is contained in:
parent
e52f450069
commit
8e146e3d8f
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue