I am looking for a solution to run a Mathematica calculation in a separate process (separate kernel) and cancel the computation after a given time. If it cannot be cancelled, then just kill that process gracefully.
There are two easy ways to evaluate code in a separate kernel: parallel kernels and
LocalSubmit. What I am looking for is a mechanism to gracefully kill the kernel after a timeout if a soft-abort does not work.
The SageMath system has a feature like this: see