Record simulation runs and report runs, and their outcomes when Modal reports that a call ended
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 15/100
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- Python
- Estrelas
- 1
- Forks
- 1
- Merge médio
- 1d 12h
- PRs com merge (30d)
- 71
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de PolicyEngine/policyengine-sim-api
-
Sim's table models still map the report columns API v1 dropsTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
PolicyEngine/policyengine-sim-api#1110 ·
Mantenedores costumam responder em até 1 dia
-
Rename Populace to Microcosm in docstrings and test namesTalvez já em andamento @MaxGhenis assumiu há 6 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
PolicyEngine/policyengine-sim-api#1086 ·
Mantenedores costumam responder em até 1 dia
-
Update policyengine to 6.20.2Talvez já em andamento @policyengine assumiu há 6 dias. Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 63/100
PolicyEngine/policyengine-sim-api#1083 ·
Mantenedores costumam responder em até 1 dia
-
Update policyengine to 6.7.3Talvez livre de novo Um pull request para esta issue foi fechado sem ser mesclado. Aberta
Dificuldade 2/5 Meio dia Facilidade para iniciantes 70/100
PolicyEngine/policyengine-sim-api#823 ·
Mantenedores costumam responder em até 1 dia
-
Integration tests fail due to missing UV virtual environment setupTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
PolicyEngine/policyengine-sim-api#314 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de PolicyEngine/policyengine-sim-api
Issues semelhantes
-
eegprep-lean: set channel types from the Zarr group's channel_typeTalvez já em andamento @claude assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
sccn/eegprep#668 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Upgrade Django to 5.2.18Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
blacklanternsecurity/bbot#3679 ·
Mantenedores costumam responder em até 2 dias
-
Link Checker ReportAbertaBot Type: Bug Type: Documentation
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 85/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 80/100
speakeasy-api/speakeasy#2159 ·
Mantenedores costumam responder em até 1 dia