This is an automated email from the ASF dual-hosted git repository.
sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-release.git
The following commit(s) were added to refs/heads/main by this push:
new c2e94be Fix a bug in resetting broken tasks
c2e94be is described below
commit c2e94be4d4a60ffe1486d453fbecc36e9efd78f5
Author: Sean B. Palmer <[email protected]>
AuthorDate: Mon Mar 31 19:35:05 2025 +0100
Fix a bug in resetting broken tasks
---
atr/manager.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/atr/manager.py b/atr/manager.py
index f0dcafe..c664e76 100644
--- a/atr/manager.py
+++ b/atr/manager.py
@@ -308,7 +308,7 @@ class WorkerManager:
sqlmodel.update(models.Task)
.where(
sqlmodel.and_(
-
db.validate_instrumented_attribute(models.Task.id).notin_(active_worker_pids),
+
db.validate_instrumented_attribute(models.Task.pid).notin_(active_worker_pids),
models.Task.status == models.TaskStatus.ACTIVE,
)
)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]