#NEWLINE# @ action ( _ ( 'Kill selected tasks' ) ) #NEWLINE# def kill_tasks( self , request , queryset ) : #NEWLINE# #INDENT# with current_app . default_connection ( ) as connection : #NEWLINE# #INDENT# for state in queryset : #NEWLINE# #INDENT# revoke ( state . task_id , connection = request , terminate = True , signal = 'KILL' )