-
Notifications
You must be signed in to change notification settings - Fork 0
feat: issue 13 & issue 14 #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -296,13 +296,14 @@ const Logs = () => { | |||||||
| const dashboardData = await taskService.getDashboardData(); | ||||||||
|
|
||||||||
| console.log('Dashboard data for logs:', dashboardData); | ||||||||
| console.log('Submitted tasks found:', dashboardData.submitted_tasks?.length || 0); | ||||||||
| console.log('Tasks found:', dashboardData.tasks?.length || 0); | ||||||||
|
|
||||||||
| if (Array.isArray(dashboardData.submitted_tasks)) { | ||||||||
| for (const task of dashboardData.submitted_tasks.slice(-10)) { | ||||||||
| if (Array.isArray(dashboardData.tasks)) { | ||||||||
| for (const task of dashboardData.tasks.slice(-20)) { // Get last 20 tasks | ||||||||
| try { | ||||||||
| console.log('Loading log for task:', task.task_id, 'from:', task.tes_url); | ||||||||
| const logResponse = await logService.getTaskLogs(task.task_id, task.tes_url); | ||||||||
| console.log('Loading log for task:', task.task_id || task.id, 'from:', task.tes_url); | ||||||||
| const taskId = task.task_id || task.id; | ||||||||
| const logResponse = await logService.getTaskLogs(taskId, task.tes_url); | ||||||||
| let content = 'No log content available'; | ||||||||
|
|
||||||||
| console.log('Task log response:', logResponse); | ||||||||
|
|
@@ -312,30 +313,31 @@ const Logs = () => { | |||||||
| } else if (logResponse && logResponse.log) { | ||||||||
|
||||||||
| } else if (logResponse && logResponse.log) { | |
| } else if (logResponse && logResponse.log) { | |
| content = logResponse.log; |
Uh oh!
There was an error while loading. Please reload this page.