@check_job_permission
def task_attempt_counters(request, job, taskid, attemptid):
 job_link = JobLinkage(request.jt, job.jobId)
 task = job_link.get_task(taskid)
 attempt = task.get_attempt(attemptid)
 counters = {}
 if attempt:
  counters = attempt.counters
 return render('counters.html', request, {'counters': counters})

@ check_job_permission def task_attempt_counters ( request , job , taskid , attemptid ) : job_link = JobLinkage ( request . jt , job . jobId ) task = job_link . get_task ( taskid ) attempt = task . get_attempt ( attemptid ) counters = { } if attempt : counters = attempt . counters return render ( 'counters.html' , request , { 'counters' : counters } )
we get here from /jobs/jobid/tasks/taskid/attempts/attemptid/counters .