Not able to cancel run in stream loop when status is not in_progress

I am running for loop (for event in stream: ) and when i want to cancel run, it is not cancelled in between this loop. How can I solve this.

Same issue,

When I create a new thread with a fresh message, then I want to run my assistant on the thread, the log shows me that there is a running run.

I checked the time, even after 30 SECONDS, I can see the run is in the progress status.

  • When I want to cancel it, I ca not do such a thing.