Record simulation runs and report runs, and their outcomes when Modal reports that a call ended
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 15/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Python
- Star
- 1
- Fork
- 1
- Merge trung bình
- 1 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 71
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của PolicyEngine/policyengine-sim-api
-
Sim's table models still map the report columns API v1 dropsCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
PolicyEngine/policyengine-sim-api#1110 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Rename Populace to Microcosm in docstrings and test namesCó thể đã có người làm @MaxGhenis đã nhận 6 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
PolicyEngine/policyengine-sim-api#1086 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Update policyengine to 6.20.2Có thể đã có người làm @policyengine đã nhận 6 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 63/100
PolicyEngine/policyengine-sim-api#1083 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Update policyengine to 6.7.3Có thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 70/100
PolicyEngine/policyengine-sim-api#823 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Integration tests fail due to missing UV virtual environment setupCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
PolicyEngine/policyengine-sim-api#314 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của PolicyEngine/policyengine-sim-api
Issue tương tự
-
eegprep-lean: set channel types from the Zarr group's channel_typeCó thể đã có người làm @claude đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
sccn/eegprep#668 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Upgrade Django to 5.2.18Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
blacklanternsecurity/bbot#3679 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Link Checker ReportĐang mởBot Type: Bug Type: Documentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
speakeasy-api/speakeasy#2159 ·
Maintainer thường phản hồi trong vòng 1 ngày