Skip to content

Commit

Permalink
Bug/logs (#150)
Browse files Browse the repository at this point in the history
* Always show log bar

* Reduce page limit to 20; Reduce renders of log bar

* Update tests to allow log bar to be visible before log data

* Added log bar for stderr
  • Loading branch information
obgibson authored Jul 25, 2024
1 parent abe6005 commit 5675413
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/Task/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,15 +192,15 @@ const Task: React.FC<TaskViewProps> = ({
paused: !isCurrentTaskFinished,
preload: task?.status === 'running',
url: `${logUrl}out?attempt_id=${attemptId.toString()}`,
pagesize: 50,
pagesize: 20,
});

// Error logs
const stderr = useLogData({
paused: !isCurrentTaskFinished,
preload: task?.status === 'running',
url: `${logUrl}err?attempt_id=${attemptId.toString()}`,
pagesize: 50,
pagesize: 20,
});

const onUpdate = useCallback((data: Artifact[]) => {
Expand Down

0 comments on commit 5675413

Please sign in to comment.