summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/reset-failed-tasks5
-rwxr-xr-xscripts/reset-running-tasks5
2 files changed, 10 insertions, 0 deletions
diff --git a/scripts/reset-failed-tasks b/scripts/reset-failed-tasks
new file mode 100755
index 0000000..eddfff0
--- /dev/null
+++ b/scripts/reset-failed-tasks
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+DB_PATH="/site/doot.terst.org/data/claudomator.db"
+
+sqlite3 "$DB_PATH" "UPDATE tasks SET state = 'PENDING' WHERE state = 'FAILED';"
diff --git a/scripts/reset-running-tasks b/scripts/reset-running-tasks
new file mode 100755
index 0000000..99b0cce
--- /dev/null
+++ b/scripts/reset-running-tasks
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+DB_PATH="/site/doot.terst.org/data/claudomator.db"
+
+sqlite3 "$DB_PATH" "UPDATE tasks SET state = 'PENDING' WHERE state = 'RUNNING';"