mirror of
https://github.com/newnius/YAO-portal.git
synced 2025-12-13 00:56:44 +00:00
extend job name
This commit is contained in:
3
ajax.php
3
ajax.php
@@ -2,6 +2,7 @@
|
||||
|
||||
require_once('util4p/util.php');
|
||||
require_once('util4p/CRObject.class.php');
|
||||
require_once('util4p/Random.class.php');
|
||||
|
||||
require_once('Code.class.php');
|
||||
require_once('Securer.class.php');
|
||||
@@ -70,7 +71,7 @@ switch ($action) {
|
||||
|
||||
case 'job_submit':
|
||||
$job = new CRObject();
|
||||
$job->set('name', cr_get_POST('name', '') . '-' . time());
|
||||
$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'));
|
||||
|
||||
Reference in New Issue
Block a user