Commit Graph
2 Commits
Author SHA1 Message Date
Alessandro e5475447de Preserve cancellation when a maintenance hook stops with an error
Wait for the cooperative plugin worker to stop, then retain the original scheduler cancellation even when the hook raises during shutdown. Cover both returning and raising hooks so cancelled maintenance does not become a failed task.
2026-11-13 11:14:35 +01:00
Alessandro 60b564bc57 Run plugin maintenance through the A0 task scheduler
Add an optional plugin owner to saved tasks and execute its scheduled hook without creating an agent chat or calling a model. Keep schedule, state, cancellation and persisted results in the existing scheduler; disabled or missing handlers fail closed.

Hide inapplicable model inputs for plugin tasks and preserve legacy task behavior. Verified with 37 scheduler execution, recovery, serialization, timezone and editor tests.
2026-11-13 10:15:33 +01:00