Record simulation runs and report runs, and their outcomes when Modal reports that a call ended
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 15/100
Piste de recherche
Start at the Simulation Entrypoint and the existing schema/migrations that define simulation.simulation_runs and simulation.report_runs. Trace how v2 Modal calls are dispatched and where sim's main URL receives callbacks, then map the conditional status transitions and the Cloud Run safety job. Done means runs move only through expected-status updates, Modal callbacks are verified and idempotent, abandoned dispatching runs are failed by the sweeper, and deploys pass sim's Modal token to the entrypoint.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Each simulation can run many times (on newer model or data versions, or when a user runs a report again), and a report run should reuse a simulation run that already exists, most often the current-law baseline. The Simulation Entrypoint needs to record those executions and learn their outcomes without any caller polling:
simulation.simulation_runs: one execution of a simulation for a catalog version and year, with the region and dataset rows it resolved in that version, its status (pending,dispatching,running,succeeded,failed), Modal call ID, timings, error, trigger and attempt number; unique per simulation, catalog version, year and attempt.simulation.report_runs: one calculation of a report, joining a baseline and a reform simulation run of the same catalog version and year, with the economy comparison step's own status and Modal call.- Every status change is one conditional update on the expected status, so a second writer changes nothing; only the caller that moves runs from
pendingtodispatchingstarts their Modal call; a household report's two runs share one call and change together. - When a v2 Modal call ends, it reports that to sim's main URL with the call ID and run IDs (no result). sim checks that the request comes from sim's own Modal function, asks Modal for the call's outcome itself, and records it. A repeated report changes nothing.
- A safety check, a Cloud Run job that Cloud Scheduler starts every few minutes, records calls whose report never arrived and fails runs left
dispatching. It runs only the promoted revision's image. - The web service keeps no CPU or instance for recording, so a rejected or rolled-back revision never records anything. Every deploy gives the entrypoint sim's own Modal token.
No route creates runs yet; the stage 2 routes do, and the v2 Modal functions call the sender then.
- Langage dominant
- Python
- Étoiles
- 1
- Forks
- 1
- Merge moyen
- 1 j 12 h
- PR mergées (30 j)
- 71
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de PolicyEngine/policyengine-sim-api
-
Sim's table models still map the report columns API v1 dropsPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
PolicyEngine/policyengine-sim-api#1110 ·
Les mainteneurs répondent en général sous 1 jour
-
Rename Populace to Microcosm in docstrings and test namesPeut-être pris @MaxGhenis l’a pris il y a 6 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
PolicyEngine/policyengine-sim-api#1086 ·
Les mainteneurs répondent en général sous 1 jour
-
Update policyengine to 6.20.2Peut-être pris @policyengine l’a pris il y a 6 jours. Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 63/100
PolicyEngine/policyengine-sim-api#1083 ·
Les mainteneurs répondent en général sous 1 jour
-
Update policyengine to 6.7.3Peut-être à nouveau libre Une pull request pour cette issue a été fermée sans être fusionnée. Ouverte
Difficulté 2/5 Une demi-journée Accessibilité débutants 70/100
PolicyEngine/policyengine-sim-api#823 ·
Les mainteneurs répondent en général sous 1 jour
-
Integration tests fail due to missing UV virtual environment setupPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
PolicyEngine/policyengine-sim-api#314 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de PolicyEngine/policyengine-sim-api
Issues similaires
-
eegprep-lean: set channel types from the Zarr group's channel_typePeut-être pris @claude l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
sccn/eegprep#668 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Upgrade Django to 5.2.18Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
blacklanternsecurity/bbot#3679 ·
Les mainteneurs répondent en général sous 2 jours
-
Link Checker ReportOuverteBot Type: Bug Type: Documentation
Difficulté 1/5 Moins d'une heure Accessibilité débutants 85/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 80/100
speakeasy-api/speakeasy#2159 ·
Les mainteneurs répondent en général sous 1 jour