mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-29 09:00:03 +08:00
refactor(backend): extract workspace task drivers
This commit is contained in:
+3
-1
@@ -25,7 +25,9 @@ These rules supplement the repository's root `AGENTS.md`.
|
||||
Cancel work only at cancellation-safe boundaries. Keep issued side effects
|
||||
owned through completion or explicit reconciliation. Preserve shared
|
||||
transaction boundaries and ensure a task can reply without acquiring a lock
|
||||
held by the waiting caller.
|
||||
held by the waiting caller. Reuse the drivers in
|
||||
[`clash-verge-task`](../crates/clash-verge-task/src/lib.rs) for coalescing
|
||||
jobs and replaceable sessions. Keep domain policy and runtime startup local.
|
||||
- **Retry ownership.** Bounded retries share backend policy while preserving
|
||||
attempts, delays and terminal errors. Background monitors own their lifetime
|
||||
and cancellation separately; waiting for a condition or traversing distinct
|
||||
|
||||
Reference in New Issue
Block a user