import requests
def submit_job(url, job_info, plugin_info):
"""
Args:
url: http://127.0.0.1:8082
job_info: {'key': 'values'}
plugin_info: {'key': 'values'}
Returns:
"""
data = {
'JobInfo': job_info,
'PluginInfo': plugin_info,
'AuxFiles': [],
'IdOnly': False
}
result = requests.post(url + '/api/jobs', json=data)
return str(result.text)
上一篇
version
2024-05-08
下一篇
deadline webserver链接不上
2024-05-08