#NEWLINE# def stop( self , graceful = True ) : #NEWLINE# #INDENT# LOG . info ( _LI ( 'Stopping %s agent.' ) , self . agent_type ) #NEWLINE# if ( graceful and self . quitting_rpc_timeout ) : #NEWLINE# #INDENT# self . set_rpc_timeout ( self . quitting_rpc_timeout ) #NEWLINE# #UNINDENT# super ( CommonAgentLoop , self ) . stop ( graceful )