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

More closely couple the API's loading bar with the calculations it's actually performing #2001

Open
anth-volk opened this issue Nov 21, 2024 · 0 comments

Comments

@anth-volk
Copy link
Collaborator

At the moment, on the front end, we just make a guess as to how long the run should take. If technically feasible and not a heavy lift (and I'm not sure either of those are true), it'd be great to more closely couple the loading bar to the actual calculations we're doing. If we could evaluate the total queue size at some optimal point, then just check how many we've done, maybe this would be possible? And we use a front-end polling structure every ~1s, so all we'd have to do is return a percentage calculated from there.

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

1 participant