I add extra timeout check for those run cost more than 30 seconds, and …
Most of the time, it stuck in “cancelling” status , and expect it to be cancelled in several seconds.
But, most of the time the cancelling status is not changed and after several minutes(sometimes it’s more than 10) it became expierd.
Is there any problem with thread run cancel operation?
Or we cannot cancel a long long waiting run?
Have this problem too. Using assistant API i can not cancel thread run because it is already on status ‘cancelling’ and can not create new ‘run’ because of error “Can’t add messages to [thread_id] while a run [run_id] is active”. It happens sometimes. What should we do with this issue? @logankilpatrick@rohancalum Tech team please help us.
Same happens to me. I solved it by detecting the run is in cancelling status and creating a new thread and executing the pipe on this new thread.
And praise for that if it’s in cancelling status, someday it will be cancelled.
Idk if that’s a good approach but I haven’t found another way.