diff --git a/beat/core/scripts/worker.py b/beat/core/scripts/worker.py index 4e22691c0da671f17c14fe23da7fef2cae757ffd..0ccc53249ed976d9fedd53289307a9021821c4fd 100755 --- a/beat/core/scripts/worker.py +++ b/beat/core/scripts/worker.py @@ -62,7 +62,7 @@ import sys import logging import zmq import signal -import simplejson +import simplejson as json import multiprocessing import six @@ -334,7 +334,7 @@ def main(user_input=None): execution_process.join() if "result" in result: - content = simplejson.dumps(result["result"]) + content = json.dumps(result["result"]) status = WorkerController.DONE if result["result"]["status"] != 0: @@ -383,7 +383,7 @@ def main(user_input=None): # Command: execute <job-id> <json-command> if command == WorkerController.EXECUTE: job_id = parts[1] - data = simplejson.loads(parts[2]) + data = json.loads(parts[2]) if args["--docker"]: if docker_network_name: data["network_name"] = docker_network_name