Commit 06f7ca2c authored by Jérome Perrin's avatar Jérome Perrin

ACO plugin: compress message with zlib, since messages can be very large

base64 is added for XMLRPC limitation (or bug)
parent 97dc9660
......@@ -91,7 +91,7 @@ class ACO(plugin.ExecutionPlugin):
else: # asynchronous
job_id = distributor.requestSimulationRun(
[json.dumps(x) for x in scenario_list])
[json.dumps(x).encode('zlib').encode('base64') for x in scenario_list])
self.logger.info("Job registered: %s" % job_id)
while True:
......
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