mirror of
https://github.com/RuoJi6/ARTEX.git
synced 2026-12-03 12:21:50 +08:00
chore: 还原 PR #44 手写实现,准备由 Codex 按新规则重写
This commit is contained in:
1 parent
3b2887f349
commit
ba3025d04f
15 files changed
+26
-254
No files matched your search
+1
-4
@@ -746,10 +746,7 @@ 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 := t.WorkerCount
|
||||
if workers <= 0 {
|
||||
workers = e.m.Workers()
|
||||
}
|
||||
workers := e.m.Workers()
|
||||
e.deleteMu.RLock()
|
||||
if e.IsDeleting(t.ID) {
|
||||
e.deleteMu.RUnlock()
|
||||
|
||||
Reference in new issue
Block a user