Commit 994c6111 authored by Daniele Venzano's avatar Daniele Venzano 🏇

Fix stats printing

parent 14b55175
Pipeline #16322 passed with stages
in 2 minutes and 20 seconds
......@@ -21,6 +21,7 @@ from datetime import datetime, timezone
import json
import logging
import os
import pprint
import sys
import time
from argparse import ArgumentParser, Namespace, FileType, RawDescriptionHelpFormatter
......@@ -198,9 +199,7 @@ def logs_cmd(api: ZoeAPI, args):
def stats_cmd(api: ZoeAPI, args_):
"""Prints statistics on Zoe internals."""
sched = api.statistics.scheduler()
print('Scheduler queue length: {}'.format(sched['queue_length']))
print('Scheduler running queue length: {}'.format(sched['running_length']))
print('Termination threads count: {}'.format(sched['termination_threads_count']))
pprint.pprint(sched)
ENV_HELP_TEXT = '''To authenticate with Zoe you need to define three environment variables:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment