Only when it contacts the container.
If it's spinning in a cpu loop then no.
I have the same problem. In 2.4, after the timeout was reached, it threw an exception. But in 3.0.3, it marks the transaction as timed out, but doesn't throw an exception. I don't know how to fix this.