Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2014
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. for m in r:
  2. mo = m['mo']
  3. go = []
  4. commands = m['config'].split('\n')
  5. task = ReduceTask.create_task(object_selector=mo,
  6. map_script="commands",
  7. map_script_params={"commands":commands},
  8. reduce_script="pyrule:mrt_result",
  9. reduce_script_params={},
  10. timeout=120)
  11. while not task.complete:
  12. sleep(0.3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement