Fix scheduler api state display
PHRAS-198 fix
Merge pull request #1126 from nlegoff/fix-198

[3.8.6][PHRAS-198] Fix desactivation of task-manager