Bug #6815
closedAvailability of schedulers is checked badly
0%
Description
At the moment controllers check for schedulers availability by checking that command:
ps -aux | grep -F SCHEDULER_BINARY_NAME -c
output more than 2 lines. This is buggy and one of solutions suggested here should be used instead.
Updated by Ilja Zakharov almost 9 years ago
- Status changed from New to Resolved
- Assignee set to Ilja Zakharov
I used 'ps -aux | grep [n]ative-scheduler' soulution to support running scheduler from PyCharm. Approach with pgrep matches only process name which is "Python3.4" currently and it cannot be changed in case of PyCharm. And approach "pgrep -f" still matches itself as original one.
Fixed in branch "scheduler-controller-check" and ready for merge to "master".
Updated by Evgeny Novikov almost 9 years ago
It is of course better than it was before (at least schedulers shouldn't be disconnected unexpectedly) but nevertheless it is still bad since, for instance, if I open file "*native-scheduler*" in some editor the controller will think that Native Scheduler is operating. Since the latter is not so awful as suddenly disconnected schedulers I would like to implement proper checks in #6541.
Updated by Evgeny Novikov almost 9 years ago
- Status changed from Resolved to Closed
- Published in build set to 51f3c06
Merged to master in 51f3c06.