tasks: add completed flag

in some cases, the tasks are setting percent to 100 and crashing later
This commit is contained in:
Girish Ramakrishnan
2025-07-16 15:22:00 +02:00
parent 54c2e670e1
commit b42be9899e
5 changed files with 31 additions and 11 deletions
+1
View File
@@ -251,6 +251,7 @@ CREATE TABLE IF NOT EXISTS tasks(
type VARCHAR(32) NOT NULL,
argsJson TEXT,
pending BOOLEAN DEFAULT true,
completed BOOLEAN DEFAULT false,
percent INTEGER DEFAULT 0,
message TEXT,
errorJson TEXT,