|
|
|
@ -654,15 +654,13 @@ class WorkflowCycleManager:
|
|
|
|
def _workflow_parallel_branch_finished_to_stream_response(
|
|
|
|
def _workflow_parallel_branch_finished_to_stream_response(
|
|
|
|
self,
|
|
|
|
self,
|
|
|
|
*,
|
|
|
|
*,
|
|
|
|
session: Session,
|
|
|
|
|
|
|
|
task_id: str,
|
|
|
|
task_id: str,
|
|
|
|
workflow_run: WorkflowRun,
|
|
|
|
workflow_execution_id: str,
|
|
|
|
event: QueueParallelBranchRunSucceededEvent | QueueParallelBranchRunFailedEvent,
|
|
|
|
event: QueueParallelBranchRunSucceededEvent | QueueParallelBranchRunFailedEvent,
|
|
|
|
) -> ParallelBranchFinishedStreamResponse:
|
|
|
|
) -> ParallelBranchFinishedStreamResponse:
|
|
|
|
_ = session
|
|
|
|
|
|
|
|
return ParallelBranchFinishedStreamResponse(
|
|
|
|
return ParallelBranchFinishedStreamResponse(
|
|
|
|
task_id=task_id,
|
|
|
|
task_id=task_id,
|
|
|
|
workflow_run_id=workflow_run.id,
|
|
|
|
workflow_run_id=workflow_execution_id,
|
|
|
|
data=ParallelBranchFinishedStreamResponse.Data(
|
|
|
|
data=ParallelBranchFinishedStreamResponse.Data(
|
|
|
|
parallel_id=event.parallel_id,
|
|
|
|
parallel_id=event.parallel_id,
|
|
|
|
parallel_branch_id=event.parallel_start_node_id,
|
|
|
|
parallel_branch_id=event.parallel_start_node_id,
|
|
|
|
|