Commit 955953c9 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 2f54ebbe
...@@ -91,7 +91,7 @@ class ACO(plugin.ExecutionPlugin): ...@@ -91,7 +91,7 @@ class ACO(plugin.ExecutionPlugin):
else: # asynchronous else: # asynchronous
job_id = distributor.requestSimulationRun( 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) self.logger.info("Job registered: %s" % job_id)
while True: 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