StateGraph does not continue state transitions after task cancellation

hi @2HENGYUN

are you using FastAPI?
If so, there is a general approach for how to control task cancellation with state persistence Stopping endpoint for deep agents