Skip to content

Commit a1cab06

Browse files
author
Matt George
committed
Merge branch 'prune_fix'
2 parents 6714883 + e6d42ca commit a1cab06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyres/worker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def state(self):
223223
def worker_pids(self):
224224
"""Returns an array of all pids (as strings) of the workers on
225225
this machine. Used when pruning dead workers."""
226-
return map(lambda l: l.split(' ')[0],
226+
return map(lambda l: l.strip().split(' ')[0],
227227
commands.getoutput("ps -A -o pid,command | \
228228
grep pyres_worker").split("\n"))
229229

0 commit comments

Comments
 (0)