I\'m writing some platform for run trainigs on the server and I need some option to halt the training process via API. It\'s mean when I receive somr request to REST controller,