asyncio.exceptions.CancelledError on deployment when runtime reaches 5 minutes +

Is there any way to solve this problem? The agent/flow that I designed may usually take 2 minutes or probably 10 minutes for it to finish.

However on langsmith deployment, I always come across this problem “asyncio.exceptions.CancelledError” if it took more than 5 minutes**,** whereas tasks that takes less than 5 minutes doesn’t have much problem.. I’ve also tried doing client.runs.create() as oppose to client.runs.stream(), and adding BG_JOB_SHUTDOWN_GRACE_PERIOD_SECS, but I still get the error regardless

I’ve noticed that it somehow finishes the task since it retries it if it encounters that problem, but the tokens are wasted as a result… Really appreciate it if someone could help, thanks!