|
|
@@ -549,7 +549,6 @@ td, th { |
|
|
|
|
|
|
|
function refreshStatus(version_name){ |
|
|
|
$.get(`/api/v1/repos/${userName}/${repoPath}/modelarts/train-job/${jobID}?version_name=${version_name}`,(data)=>{ |
|
|
|
console.log(data) |
|
|
|
// header status and duration |
|
|
|
$(`#${version_name}-duration-span`).text(data.JobDuration) |
|
|
|
$(`#${version_name}-status-span span`).text(data.JobStatus) |
|
|
@@ -714,7 +713,6 @@ td, th { |
|
|
|
let scrollTop = container.scrollTop |
|
|
|
let scrollHeight = container.scrollHeight |
|
|
|
let clientHeight = container.clientHeight |
|
|
|
console.log(scrollTop,scrollHeight,clientHeight) |
|
|
|
if(parseInt(scrollTop) + clientHeight == scrollHeight || parseInt(scrollTop) + clientHeight +1 == scrollHeight || parseInt(scrollTop) + clientHeight - 1 == scrollHeight){ |
|
|
|
let end_line = $(`#log${version_name} input[name=end_line]`).val() |
|
|
|
$.get(`/api/v1/repos/${userName}/${repoPath}/modelarts/train-job/${jobID}/log?version_name=${version_name}&base_line=${end_line}&lines=50&order=desc`, (data) => { |
|
|
|