Calculate and store households through the v2 household functions

Offen
#956 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
12/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
python

Rechercherichtung

Start with the Simulation Entrypoint's existing tables for simulations, reports, runs and household outputs, plus the route that records a Modal call ending, and the v2 Modal household functions. The /v2/household-calculations endpoint and the household report flow are the public contract to match. Done means a household calculation can be created, dispatched to the household function, polled to success or failure with spm_config and spm_provenance returned, and a staging check passes after promotion. This is multi-part design work, so confirm scope with maintainers before coding.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

The Simulation Entrypoint has tables for simulations, reports, runs and household outputs, a route on which Modal reports that a call ended, and v2 Modal household functions, but nothing calculates a household through them yet. The Public API's /v2/household-calculations and household reports need the Simulation Entrypoint to:

  • accept a household calculation (one stored household under one policy, for a catalog version and year), record it as a simulation run, start the household function's Modal call, and let the caller poll it until it succeeds or fails, with the calculated household, its warnings, the SPM selection it applied (spm_config) and its SPM receipt (spm_provenance);
  • carry the household's saved SPM choice to the household function;
  • store a household report as a report and report runs whose baseline and reform simulation runs share one Modal call;
  • record each call's outcome when the household function reports that its call ended, with the safety check covering calls that never report and runs left dispatching;
  • check on every staging deployment, after its revision is promoted, that a household calculation succeeds end to end.

Without these, household calculations cannot move from the Public API's in-process calculation to the v2 workers.

Vorherrschende Sprache
Python
Sterne
1
Forks
1
Ø Merge
1 T. 12 Std.
Gemergte PRs (30 T.)
71

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus PolicyEngine/policyengine-sim-api

Alle Issues in PolicyEngine/policyengine-sim-api

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.