Skip to content
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

wf-details: do not change chosen log tab automatically #353

Merged

Conversation

giuseppe-steduto
Copy link
Member

@giuseppe-steduto giuseppe-steduto commented Sep 22, 2023

Changes the JobLogs component so that instead of constantly updating the
logs to show the last "failed" or "running" step, the step is changed
only on page load, or when the list of logs change from being empty to
having at least one entry.

Closes #351.

@giuseppe-steduto giuseppe-steduto changed the title No automatic log refresh wf-details: do not change chosen log tab automatically Sep 22, 2023
Changes the JobLogs component so that instead of constantly updating the
logs to show the last "failed" or "running" step, the step is changed
only on page load, or when the list of logs change from being empty to
having at least one entry.

Closes reanahub#351.
const [selectedStep, setSelectedStep] = useState(lastStepID);

useEffect(() => {
// Only update the shown step logs if there was no log displayed before
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works nicely. Sometimes I'm seeing job logs but the job button status still says "created". Perhaps this could be improved as part of #354? (Anyway, for real physics analysis payloads, when jobs may be running for hours, this time difference shouldn't really appear in the Web UI.)

@tiborsimko tiborsimko merged commit aece0a9 into reanahub:master Sep 27, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Log viewing in web interface
2 participants