1
0
mirror of https://github.com/newnius/YAO-docs.git synced 2024-07-06 05:15:18 +00:00

add api.py

This commit is contained in:
Newnius 2020-07-09 10:15:28 +08:00
parent 75ac34d8d6
commit a2f35d8cd8

5
api.py
View File

@ -4,7 +4,7 @@ import os
import json
'''Configuration'''
BASE_URL = 'http://yao.pasalab.jluapp.com'
BASE_URL = 'http://yao.example.com'
''''''
sess = requests.Session()
@ -98,7 +98,7 @@ if __name__ == '__main__':
# print(json.dumps(tasks))
job = {
'name': 'test',
'workspace': 'http://code.pasalab.jluapp.com/newnius/yao-job-benchmarks.git',
'workspace': 'https://github.com/tensorflow/benchmarks.git',
'cluster': 'default',
'priority': '25',
'run_before': '',
@ -111,3 +111,4 @@ if __name__ == '__main__':
job_status(msg['job_name'])
job_list()