mirror of
https://github.com/RuoJi6/ARTEX.git
synced 2026-11-16 15:03:49 +08:00
feat: 任务/模板备注展示与 Worker 运行数量配置
- 新建任务可填写备注;详情页头部展示备注(列表原有 RemarkEditor 保留) - 任务模板支持备注与 Worker 数量,应用/另存为模板时同步带入 - 新建任务高级设置与模板均可单独设置 Worker 运行数量(0=回落全局默认) - schema/API/引擎贯通:tasks.worker_count、task_templates.remark/worker_count
This commit is contained in:
1 parent
620ca5d96c
commit
45d4e4e67b
15 files changed
+250
-26
No files matched your search
+4
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user