mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
task_handler: fix pyright unknown-type errors in pass_task_orchestrator branch 🟪
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
e1bc5360f2
commit
d06e92cd75
1 changed files with 9 additions and 8 deletions
|
|
@ -67,16 +67,17 @@ def task_handler(
|
|||
|
||||
try:
|
||||
if pass_task_orchestrator:
|
||||
work = lambda body=body, t=task: func(
|
||||
body, context, orchestrator, t.id
|
||||
orchestrator.run_subtask(
|
||||
subtask.id,
|
||||
work=lambda: func(body, context, orchestrator, task.id),
|
||||
cloud_logs_url=cloud_logs_url,
|
||||
)
|
||||
else:
|
||||
work = lambda body=body: func(body, context)
|
||||
orchestrator.run_subtask(
|
||||
subtask.id,
|
||||
work=work,
|
||||
cloud_logs_url=cloud_logs_url,
|
||||
)
|
||||
orchestrator.run_subtask(
|
||||
subtask.id,
|
||||
work=lambda: func(body, context),
|
||||
cloud_logs_url=cloud_logs_url,
|
||||
)
|
||||
except Exception:
|
||||
logger.exception(
|
||||
"subtask failed (task_source=%s source_id=%s)",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue