1
0
mirror of https://github.com/newnius/YAO-portal.git synced 2025-12-15 17:36:44 +00:00
This commit is contained in:
2020-06-24 22:46:56 +08:00
parent 929ab65321
commit 0e0c5a6f1e
3 changed files with 72 additions and 15 deletions

View File

@@ -101,9 +101,15 @@ switch ($action) {
case 'job_predict_req':
$job = new CRObject();
$job->set('name', cr_get_POST('name'));
$job->set('cmd', cr_get_POST('cmd'));
$res = job_predict_req($job);
$job->set('name', cr_get_POST('name', '') . '-' . time() . Random::randomInt(1000, 9999));
$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'));
$role = cr_get_GET('role');
$res = job_predict_req($job, $role);
break;
case 'summary_get':