Calculate and store households through the v2 household functions
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 12/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- python
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Python
- 星标
- 1
- 派生
- 1
- 平均合并
- 1 天 12 小时
- 30 天内合并 PR
- 71
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
PolicyEngine/policyengine-sim-api 的其他 Issue
-
Sim's table models still map the report columns API v1 drops可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
PolicyEngine/policyengine-sim-api#1110 ·
维护者通常 1 天内回复
-
Rename Populace to Microcosm in docstrings and test names可能已有人在做 @MaxGhenis 于 6 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 74/100
PolicyEngine/policyengine-sim-api#1086 ·
维护者通常 1 天内回复
-
Update policyengine to 6.20.2可能已有人在做 @policyengine 于 6 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 63/100
PolicyEngine/policyengine-sim-api#1083 ·
维护者通常 1 天内回复
-
Update policyengine to 6.7.3可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 2/5 半天 新手友好度 70/100
PolicyEngine/policyengine-sim-api#823 ·
维护者通常 1 天内回复
-
Integration tests fail due to missing UV virtual environment setup可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 65/100
PolicyEngine/policyengine-sim-api#314 ·
维护者通常 1 天内回复
查看 PolicyEngine/policyengine-sim-api 的全部 Issue
相似的 Issue
-
area: ci enhancement perceived difficulty: 1
难度 2/5 1-3 小时 新手友好度 74/100
Nitjsefnie-Harness-Commons/daedalus#1826 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
vllm-project/vllm-sail#398 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 65/100
DiamondLightSource/sm-bluesky#476 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
jenkinsci/user-guide-ai-chatbot-plugin#132 ·
维护者通常 6 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100