|
@@ -79,7 +79,7 @@ class Tasks(BaseCommand): |
|
|
|
|
|
|
|
|
for task in tasks: |
|
|
for task in tasks: |
|
|
threads_running_task = [t for t in threads if t.name.startswith(task)] |
|
|
threads_running_task = [t for t in threads if t.name.startswith(task)] |
|
|
ids = map(lambda t: t.ident, threads_running_task) |
|
|
|
|
|
|
|
|
ids = map(lambda t: str(t.ident), threads_running_task) |
|
|
if not ids: |
|
|
if not ids: |
|
|
tasklist.append("\x0302{}\x0301 (idle)".format(task)) |
|
|
tasklist.append("\x0302{}\x0301 (idle)".format(task)) |
|
|
elif len(ids) == 1: |
|
|
elif len(ids) == 1: |
|
|