We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6714883 + e6d42ca commit a1cab06Copy full SHA for a1cab06
pyres/worker.py
@@ -223,7 +223,7 @@ def state(self):
223
def worker_pids(self):
224
"""Returns an array of all pids (as strings) of the workers on
225
this machine. Used when pruning dead workers."""
226
- return map(lambda l: l.split(' ')[0],
+ return map(lambda l: l.strip().split(' ')[0],
227
commands.getoutput("ps -A -o pid,command | \
228
grep pyres_worker").split("\n"))
229
0 commit comments