Skip to content

Commit

Permalink
fix: Start workflows asynchronously
Browse files Browse the repository at this point in the history
  • Loading branch information
whiterabbit1983 committed Sep 17, 2024
1 parent 1847be2 commit 13f528e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agents-api/agents_api/clients/temporal.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ async def run_truncation_task(
):
client = await get_client()

await client.execute_workflow(
await client.start_workflow(
"TruncationWorkflow",
args=[str(developer_id), str(session_id), token_count_threshold],
task_queue="memory-task-queue",
Expand All @@ -88,7 +88,7 @@ async def run_truncation_task(
async def run_summarization_task(session_id: UUID, job_id: UUID):
client = await get_client()

await client.execute_workflow(
await client.start_workflow(
"SummarizationWorkflow",
args=[str(session_id)],
task_queue="memory-task-queue",
Expand Down

0 comments on commit 13f528e

Please sign in to comment.