feat: 任务/模板备注展示与 Worker 运行数量配置

- 新建任务可填写备注;详情页头部展示备注(列表原有 RemarkEditor 保留)
- 任务模板支持备注与 Worker 数量,应用/另存为模板时同步带入
- 新建任务高级设置与模板均可单独设置 Worker 运行数量(0=回落全局默认)
- schema/API/引擎贯通:tasks.worker_count、task_templates.remark/worker_count
This commit is contained in:
RuoJi6 committed 2026-10-23 19:01:21 +08:00
1 parent 620ca5d96c
commit 45d4e4e67b
15 files changed
+250 -26

No files matched your search

+4 -1
View File
@@ -746,7 +746,10 @@ func (e *Engine) ReadyFor(t *Task) bool {
// but no-op until an LLM is configured (so a task created while idle picks up
// automatically once LLM is set from the UI).
func (e *Engine) Run(ctx context.Context, t *Task) {
workers := e.m.Workers()
workers := t.WorkerCount
if workers <= 0 {
workers = e.m.Workers()
}
e.deleteMu.RLock()
if e.IsDeleting(t.ID) {
e.deleteMu.RUnlock()