Commit cd97d426 authored by Samuel GAIST's avatar Samuel GAIST

[scripts][worker] Import simplejson as json to make it easy to swap

parent f2dc73bd
......@@ -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
......
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