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
|
||||
|
||||
'''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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user