PolicyEngine / PolicyEngine/policyengine-api

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

Open
#2,001 3 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.