#NEWLINE# @ synchronized ( 'arbiter_reload' ) #NEWLINE# @ gen . coroutine #NEWLINE# @ debuglog #NEWLINE# def reload( self , graceful = True , sequential = False ) : #NEWLINE# #INDENT# 'Reloads everything.\n\n        Run the :func:`prereload_fn` callable if any, then gracefuly\n        reload all watchers.\n        ' #NEWLINE# if self . _stopping : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if ( graceful . prereload_fn is not None ) : #NEWLINE# #INDENT# self . prereload_fn ( self ) #NEWLINE# #UNINDENT# for handler in logger . handlers : #NEWLINE# #INDENT# if isinstance ( handler , logging . FileHandler ) : #NEWLINE# #INDENT# handler . acquire ( ) #NEWLINE# handler . stream . close ( ) #NEWLINE# handler . stream = open ( handler . baseFilename , handler . mode ) #NEWLINE# handler . release ( ) #NEWLINE# #UNINDENT# #UNINDENT# for watcher in self . iter_watchers ( ) : #NEWLINE# #INDENT# ( yield watcher . _reload ( graceful = graceful , sequential = sequential ) ) #NEWLINE# tornado_sleep ( self . warmup_delay )