@check_job_permission
def set_job_priority(request, job):
 priority = request.GET.get('priority')
 jid = request.jt.thriftjobid_from_string(job.jobId)
 request.jt.set_job_priority(jid, ThriftJobPriority._NAMES_TO_VALUES[priority])
 return render_json({})

@ check_job_permission def set_job_priority ( request , job ) : priority = request . GET . get ( 'priority' ) jid = request . jt . thriftjobid_from_string ( job . jobId ) request . jt . set_job_priority ( jid , ThriftJobPriority . _NAMES_TO_VALUES [ priority ] ) return render_json ( { } )
we get here from /jobs/job/setpriority?priority=priority .