#NEWLINE# def sync_job_reset( r , **attr ) : #NEWLINE# #INDENT# '\n        RESTful method to reset a job status from FAILED to QUEUED,\n        for "Reset" action button\n    ' #NEWLINE# if r . interactive : #NEWLINE# #INDENT# if ( r . component and ( r . component . alias == 'job' ) ) : #NEWLINE# #INDENT# job_id = r . component_id #NEWLINE# if job_id : #NEWLINE# #INDENT# S3Task . reset ( job_id ) #NEWLINE# current . session . confirmation = current . T ( 'Job reactivated' ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# r . component_id = None #NEWLINE# redirect ( r . url ( method = '' ) )