#NEWLINE# def get_load( jid ) : #NEWLINE# #INDENT# '\n    Return the load data that marks a specified jid\n    ' #NEWLINE# cb_ = _get_connection ( ) #NEWLINE# try : #NEWLINE# #INDENT# jid_doc = cb_ . get ( str ( jid ) ) #NEWLINE# #UNINDENT# except couchbase . exceptions . NotFoundError : #NEWLINE# #INDENT# return { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# ret = jid_doc . value [ 'load' ] #NEWLINE# if ( 'minions' in jid_doc . value ) : #NEWLINE# #INDENT# ret [ 'Minions' ] = jid_doc . value [ 'minions' ] #NEWLINE# #UNINDENT# return jid_doc