Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(signals): terminate active buffer workflow (#81400)

Paul D'Ambra3755cd2916bb
diff --git a/products/signals/backend/test/test_buffer_workflow.py b/products/signals/backend/test/test_buffer_workflow.py
index acb6f12dc562..841181a85158 100644
--- a/products/signals/backend/test/test_buffer_workflow.py
+++ b/products/signals/backend/test/test_buffer_workflow.py
@@ -82,7 +82,7 @@ async def _drive(recorder: _Recorder) -> None:
await handle.signal(BufferSignalsWorkflow.submit_signal, _signal(1))
terminal = recorder.gate_reached if recorder.over_quota else recorder.flow_done
await asyncio.wait_for(terminal.wait(), timeout=30)
- await handle.terminate()
+ await env.client.get_workflow_handle(handle.id).terminate()
@pytest.mark.asyncio