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:
parent
75ac34d8d6
commit
a2f35d8cd8
5
api.py
5
api.py
@ -4,7 +4,7 @@ import os
|
|||||||
import json
|
import json
|
||||||
|
|
||||||
'''Configuration'''
|
'''Configuration'''
|
||||||
BASE_URL = 'http://yao.pasalab.jluapp.com'
|
BASE_URL = 'http://yao.example.com'
|
||||||
''''''
|
''''''
|
||||||
|
|
||||||
sess = requests.Session()
|
sess = requests.Session()
|
||||||
@ -98,7 +98,7 @@ if __name__ == '__main__':
|
|||||||
# print(json.dumps(tasks))
|
# print(json.dumps(tasks))
|
||||||
job = {
|
job = {
|
||||||
'name': 'test',
|
'name': 'test',
|
||||||
'workspace': 'http://code.pasalab.jluapp.com/newnius/yao-job-benchmarks.git',
|
'workspace': 'https://github.com/tensorflow/benchmarks.git',
|
||||||
'cluster': 'default',
|
'cluster': 'default',
|
||||||
'priority': '25',
|
'priority': '25',
|
||||||
'run_before': '',
|
'run_before': '',
|
||||||
@ -111,3 +111,4 @@ if __name__ == '__main__':
|
|||||||
job_status(msg['job_name'])
|
job_status(msg['job_name'])
|
||||||
|
|
||||||
job_list()
|
job_list()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user