fix: goal_resume_task 只在 LocalExecutor 上调,其余回落 goal_task
与附件分支同款隐患:CloudExecutor 基类与假执行器没有 goal_resume_task,直接调会 AttributeError;回落到 goal_task 让 它们按原语义失败(CloudExecutor 即“不支持 goal”)。
This commit is contained in:
1 parent
3a4997d346
commit
f9be9205ab
1 file changed
+1
@@ -1700,6 +1700,7 @@ class Worker:
|
|||||||
# TypeError(2026-10-27 实测炸掉 3 个旧测试);
|
# TypeError(2026-10-27 实测炸掉 3 个旧测试);
|
||||||
# Docker 路径上面已有 is_docker 守卫,不走这里。
|
# Docker 路径上面已有 is_docker 守卫,不走这里。
|
||||||
if goal_mode:
|
if goal_mode:
|
||||||
|
|
||||||
if task.get("_resume") and isinstance(
|
if task.get("_resume") and isinstance(
|
||||||
self.executor, LocalExecutor):
|
self.executor, LocalExecutor):
|
||||||
result = self.executor.goal_resume_task(
|
result = self.executor.goal_resume_task(
|
||||||
|
|||||||
Reference in new issue
Block a user