def sync_job_reset(r, **attr):
 if r.interactive:
  if (r.component and (r.component.alias == 'job')):
   job_id = r.component_id
   if job_id:
    S3Task.reset(job_id)
    current.session.confirmation = current.T('Job reactivated')
 r.component_id = None
 redirect(r.url(method=''))

def sync_job_reset ( r , ** attr ) : if r . interactive : if ( r . component and ( r . component . alias == 'job' ) ) : job_id = r . component_id if job_id : S3Task . reset ( job_id ) current . session . confirmation = current . T ( 'Job reactivated' ) r . component_id = None redirect ( r . url ( method = '' ) )
restful method to reset a job status from failed to queued .