(status: str)
| 236 | barrier = threading.Barrier(2) |
| 237 | |
| 238 | def emit(status: str) -> None: |
| 239 | barrier.wait() # both threads enter at the same instant |
| 240 | enqueue_agent_notification( |
| 241 | task_id=state.id, description=state.description, |
| 242 | status=status, output_file=state.output_file, registry=reg, |
| 243 | ) |
| 244 | |
| 245 | t1 = threading.Thread(target=emit, args=("completed",)) |
| 246 | t2 = threading.Thread(target=emit, args=("killed",)) |
nothing calls this directly
no test coverage detected