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

Task status does not update #80

Open
romain-intel opened this issue Aug 30, 2022 · 2 comments
Open

Task status does not update #80

romain-intel opened this issue Aug 30, 2022 · 2 comments

Comments

@romain-intel
Copy link
Contributor

Description

When looking at the view of a task, the state of a task is highlighted by a little read/green/light-green line next to the task's name. This does not update live as the task finishes. It works fine when on the timeline view though.

Steps to Reproduce

  1. Go to a running flow
  2. Select a running task from the timeline view and click on it
  3. Wait for it to finish. You will see that the task's state does not update but will if you reload the page.

Expected behavior:

The websocket connection should stream the task's state result to the UI and it should update live like it does for the timeline view.

Actual behavior:

Live updates do not happen

Reproduces how often:

Every time

Versions

v1.1.3

Additional Information

@obgibson
Copy link
Collaborator

obgibson commented Jan 9, 2023

@romain-intel are you still seeing this with the latest version?

@obgibson
Copy link
Collaborator

In TaskList.tsx

The following code causes the component to re-render each time the component is scrolled

    const listener = () => {
      setScrollTop(window.scrollY);
    };

    window.addEventListener('scroll', listener);
    return () => window.removeEventListener('scroll', listener);
  }, []);

This causes the duration timer to update

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

No branches or pull requests

2 participants