summaryrefslogtreecommitdiffstats
path: root/cli.py
diff options
context:
space:
mode:
authorMark Beierl <mark.beierl@emc.com>2016-04-25 09:55:03 -0400
committerMark Beierl <mark.beierl@emc.com>2016-04-25 10:51:31 -0400
commit311eee3bec00d5acc32b6eba76a7ff0d1990f4b2 (patch)
tree9fe4ee0f33687ebaed1c82ff3bea0d569039cc78 /cli.py
parent07a375f25ee831100ecf21e7bb9c1bdcd3b960f5 (diff)
Job run lifecycle rework
Change the way slave jobs are managed so that they are in step with each other, and we can track the overall thread that is running them. This lays groundwork for STORPERF-20 and STORPERF-44 JIRA: STORPERF-33 STORPERF-43 Change-Id: Iaff48a2823ba85d6512e9782fd9091a72639835c Signed-off-by: Mark Beierl <mark.beierl@emc.com>
Diffstat (limited to 'cli.py')
-rw-r--r--cli.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/cli.py b/cli.py
index 560d77d..5595314 100644
--- a/cli.py
+++ b/cli.py
@@ -10,7 +10,6 @@
"""
from storperf.storperf_master import StorPerfMaster
-from storperf.test_executor import UnknownWorkload
from threading import Thread
import cPickle
import getopt
@@ -18,13 +17,10 @@ import json
import logging
import logging.config
import logging.handlers
-import os
import socket
import struct
import sys
-import time
-import html2text
import requests
@@ -49,7 +45,7 @@ class LogRecordStreamHandler(object):
while True:
datagram = self.socket.recv(8192)
chunk = datagram[0:4]
- slen = struct.unpack(">L", chunk)[0]
+ struct.unpack(">L", chunk)[0]
chunk = datagram[4:]
obj = cPickle.loads(chunk)
record = logging.makeLogRecord(obj)