task v2 refactor part 8: observer_task -> task_v2 in backend code (#1820)
This commit is contained in:
@@ -51,8 +51,8 @@ def main(
|
||||
{
|
||||
"workflow_permanent_id": workflow_pid,
|
||||
"status": str(workflow_run_response.status),
|
||||
"summary": workflow_run_response.observer_task.summary,
|
||||
"output": workflow_run_response.observer_task.output,
|
||||
"summary": workflow_run_response.task_v2.summary,
|
||||
"output": workflow_run_response.task_v2.output,
|
||||
"assertion": workflow_run_response.status == WorkflowRunStatus.completed,
|
||||
"failure_reason": workflow_run_response.failure_reason or "",
|
||||
}
|
||||
|
||||
@@ -36,8 +36,8 @@ async def process_record(client: SkyvernClient, one_record: dict[str, Any]) -> d
|
||||
one_record.update(
|
||||
{
|
||||
"status": str(workflow_run_response.status),
|
||||
"summary": workflow_run_response.observer_task.summary,
|
||||
"output": workflow_run_response.observer_task.output,
|
||||
"summary": workflow_run_response.task_v2.summary,
|
||||
"output": workflow_run_response.task_v2.output,
|
||||
}
|
||||
)
|
||||
if workflow_run_response.status != WorkflowRunStatus.completed:
|
||||
|
||||
Reference in New Issue
Block a user