1
0
mirror of https://github.com/newnius/YAO-portal.git synced 2025-12-16 01:46:43 +00:00
This commit is contained in:
2020-07-01 10:52:31 +08:00
parent 72a5d1d299
commit 1db9445f84
4 changed files with 124 additions and 1 deletions

View File

@@ -112,6 +112,18 @@ switch ($action) {
$res = job_predict_req($job, $role);
break;
case 'job_predict_time':
$job = new CRObject();
$job->set('name', cr_get_POST('name', 'jobName'));
$job->set('virtual_cluster', cr_get_POST('cluster'));
$job->set('workspace', cr_get_POST('workspace'));
$job->set('priority', cr_get_POST('priority'));
$job->set('run_before', cr_get_POST('run_before'));
$job->set('locality', cr_get_POST('locality'));
$job->set('tasks', cr_get_POST('tasks'));
$res = job_predict_time($job, $role);
break;
case 'summary_get':
$res = summary_get();
break;