refactor(backend): extract workspace task drivers

This commit is contained in:
Tunglies
2026-11-28 21:13:05 +08:00
parent d4b138d553
commit f059d1ebb5
13 changed files with 308 additions and 81 deletions
+2 -1
View File
@@ -8,7 +8,7 @@ use crate::{
service,
sysopt::{Sysopt, format_bypass},
},
process::{AsyncHandler, watch_task},
process::AsyncHandler,
utils::{
notification::{NotificationEvent, needs_system_notification, notify_event},
server,
@@ -18,6 +18,7 @@ use crate::{
use anyhow::{Result, ensure};
use clash_verge_logging::{Type, logging};
use clash_verge_service_ipc::{MacosProxyConfig, OwnerSessionProof, ProxyApplyOutcome};
use clash_verge_task::watch_task;
use std::{
borrow::Borrow,
future::Future,
+1 -1
View File
@@ -19,7 +19,6 @@ use crate::{
process::{
AsyncHandler,
scheduled_task::{self, Mailbox, Next, ScheduledTask},
watch_task,
},
};
use anyhow::{Context as _, Result, anyhow, bail};
@@ -30,6 +29,7 @@ use clash_verge_service_ipc::{
RuntimeBundle, RuntimeFileOutcome, RuntimeFileRequest, ServiceErrorCode, ServiceStatusSnapshot,
StageRuntimeOutcome, StartClashRequest, WriterConfig,
};
use clash_verge_task::watch_task;
use parking_lot::Mutex;
use std::{
collections::HashMap,