1
0
mirror of https://github.com/newnius/YAO-portal.git synced 2025-12-13 00:56:44 +00:00
This commit is contained in:
2020-04-30 12:02:56 +08:00
parent 4348a51ceb
commit 29f9714e2a
3 changed files with 11 additions and 1 deletions

View File

@@ -31,6 +31,7 @@ function job_submit(CRObject $job)
$task['memory'] = intval($task['memory']);
$task['gpu_number'] = intval($task['gpu_number']);
$task['gpu_memory'] = intval($task['gpu_memory']);
$task['is_ps'] = $task['is_ps'] == 1;
$tasks[$i] = $task;
}
$job->set('tasks', $tasks);