def _retry_task(provider, job_descriptor, task_id, task_attempt):
td_orig = job_descriptor.find_task_descriptor(task_id)<EOL>new_task_descriptors = [<EOL>job_model.TaskDescriptor({<EOL>'<STR_LIT>': task_id,<EOL>'<STR_LIT>': task_attempt<EOL>}, td_orig.task_params, td_orig.task_resources)<EOL>]<EOL>_resolve_task_resources(job_descriptor.job_metadata,<EOL>job_descriptor.job_resources, new_task_descriptors)<EOL>provider.submit_job(<EOL>job_model.JobDescriptor(<EOL>job_descriptor.job_metadata, job_descriptor.job_params,<EOL>job_descriptor.job_resources, new_task_descriptors), False)<EOL>
Retry task_id (numeric id) assigning it task_attempt.