def get_load(jid):
 query = 'SELECT load FROM salt.jids WHERE jid = ?;'
 ret = {}
 try:
  data = __salt__['cassandra_cql.cql_query_with_prepare'](query, 'get_load', [jid])
  if data:
   load = data[0].get('load')
   if load:
    ret = json.loads(load)
 except CommandExecutionError:
  log.critical('Could not get load from jids table.')
  raise
 except Exception as e:
  log.critical('Unexpected error while getting load from jids: {0}'.format(str(e)))
  raise
 return ret

def get_load ( jid ) : query = 'SELECT load FROM salt.jids WHERE jid = ?;' ret = { } try : data = __salt__ [ 'cassandra_cql.cql_query_with_prepare' ] ( query , 'get_load' , [ jid ] ) if data : load = data [ 0 ] . get ( 'load' ) if load : ret = json . loads ( load ) except CommandExecutionError : log . critical ( 'Could not get load from jids table.' ) raise except Exception as e : log . critical ( 'Unexpected error while getting load from jids: {0}' . format ( str ( e ) ) ) raise return ret
return the load from a specified jid .