m_get_run_mode

This function returns the current task's run status and parent task number, if any.