Other Features
Forced Termination of Processes
The Session
class provides a static method enableJobCancellation()
to enable forced termination of processes. It is disabled by default. With this feature enabled, when the Python API process is terminated (e.g. by Ctrl+C), any currently running jobs from any session will be cancelled.
Note: This feature is only available on Linux.