def delete_tf(self):
    name = ((('res-' + str(self.task_id)) + '-') + str(self.rtimes))
    log_dir = '/tfdata/tfcnn/expjob/'
    response = os.system(((('kubectl delete -f ' + log_dir) + str(name)) + '.yaml'))
    if (response == 0):
        print('delete task sucess')
    else:
        print(('Error code:' + str(response)))
    self.v1.delete_namespace(name=name)
def delete_tf(self):
    name = ((('res-' + str(self.task_id)) + '-') + str(self.rtimes))
    log_dir = '/tfdata/tfcnn/expjob/'
    response = os.system(((('kubectl delete -f ' + log_dir) + str(name)) + '.yaml'))
    if (response == 0):
        print('delete task sucess')
    else:
        print(('Error code:' + str(response)))
    self.v1.delete_namespace(name=name)