#NEWLINE# @ signalcommand #NEWLINE# def handle( self , * args , **options ) : #NEWLINE# #INDENT# app_name = None #NEWLINE# job_name = None #NEWLINE# if ( len ( args ) == 1 ) : #NEWLINE# #INDENT# job_name = args [ 0 ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( len ( args ) == 2 ) : #NEWLINE# #INDENT# ( app_name , job_name ) = args #NEWLINE# #UNINDENT# #UNINDENT# if options . get ( 'list_jobs' ) : #NEWLINE# #INDENT# print_jobs ( only_scheduled = False , show_when = True , show_appname = True ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( not job_name ) : #NEWLINE# #INDENT# print ( 'Run a single maintenance job. Please specify the name of the job.' ) #NEWLINE# return #NEWLINE# #UNINDENT# self . runjob ( options , job_name , options )