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,
dataset/ETHPy150Open sahana/eden/modules/s3db/sync.py/sync_job_reset