PolicyEngine / PolicyEngine/policyengine-api
More closely couple the API's loading bar with the calculations it's actually performing
Open
@Swetna is already working on this.
Since May 8, 2025.
- Dominant language
- Python
- Stars
- 18
- Forks
- 33
- Avg merge
- 23h 40m
- Merged PRs (30d)
- 22
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.