priorities.append(get_priority(access_requests,current_request))# Return the position of the current request in requests execution order
ifpriorities[-1]==1andnotos.path.exists(lock_file):# lock_file prevents error with jobs launched after the job with access to the ressource but on node with a bad timestamp