You can start a Workflow that has a MR program in it. Then, the status endpoint for the MR program will show running once it is actually running.
However, the stop-program REST API for the inner MR program will respond that the program is not actually running when it is hit.
For instance, if the TopNMapReduce is running within a workflow and you hit the following endpoint:
it will return:
java.io.IOException: 400: Program not running
which is logged from:
Either an improved error message needs to be returned or the MR program needs to be allowed to be stopped.