mirror of
https://github.com/RuoJi6/ARTEX.git
synced 2026-12-06 13:01:51 +08:00
feat(workers): hot-reload task worker concurrency
Support live task overrides and global default/pool reconciliation. Drain retiring workers without cancelling active intents; expose actual/target loop counts in the API and task UI. Persist worker policy and cover resizing, API validation, settings notification, and restoration with regression tests. Fixes #171
This commit is contained in:
1 parent
6997a46619
commit
7d9c5699cb
21 files changed
+960
-98
No files matched your search
+1
-1
@@ -483,7 +483,7 @@ export const api = {
|
||||
taskCategories: () => get<{ categories: TaskCategory[] }>("/task-categories").then((r) => arr(r.categories)),
|
||||
updateTask: (
|
||||
id: string,
|
||||
input: { name?: string; pinned?: boolean; remark?: string; share_global_assets?: boolean },
|
||||
input: { name?: string; pinned?: boolean; remark?: string; share_global_assets?: boolean; worker_count?: number },
|
||||
) => patch<Task>(`/tasks/${id}`, input),
|
||||
renameTask: (id: string, name: string) => patch<Task>(`/tasks/${id}`, { name }),
|
||||
pinTask: (id: string, pinned: boolean) => patch<Task>(`/tasks/${id}`, { pinned }),
|
||||
|
||||
Reference in new issue
Block a user