mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
task_handler passes orchestrator and task_id to wrapped function when flag is true 🟩
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
3a66819a86
commit
35a794563a
1 changed files with 7 additions and 1 deletions
|
|
@ -66,9 +66,15 @@ def task_handler(
|
|||
)
|
||||
|
||||
try:
|
||||
if pass_task_orchestrator:
|
||||
work = lambda body=body, t=task: func(
|
||||
body, context, orchestrator, t.id
|
||||
)
|
||||
else:
|
||||
work = lambda body=body: func(body, context)
|
||||
orchestrator.run_subtask(
|
||||
subtask.id,
|
||||
work=lambda body=body: func(body, context),
|
||||
work=work,
|
||||
cloud_logs_url=cloud_logs_url,
|
||||
)
|
||||
except Exception:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue