Commit 8f01dafe authored by Daniele Venzano's avatar Daniele Venzano 🏇
Browse files

Dump stats in JSON

parent 994c6111
Pipeline #16323 passed with stages
in 2 minutes and 7 seconds
......@@ -21,7 +21,6 @@ from datetime import datetime, timezone
import json
import logging
import os
import pprint
import sys
import time
from argparse import ArgumentParser, Namespace, FileType, RawDescriptionHelpFormatter
......@@ -199,7 +198,7 @@ def logs_cmd(api: ZoeAPI, args):
def stats_cmd(api: ZoeAPI, args_):
"""Prints statistics on Zoe internals."""
sched = api.statistics.scheduler()
print(json.dumps(sched, sort_keys=True, indent=4))
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