Hosted score_reform (OBR, default window) has not finished within 10 minutes since the 30 Oct deploy

未关闭
#243 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
1-2 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
python

调研方向

Start with the failing check in integration/tests/test_remote_mcp.py::test_score_reform_default_window_works_through_a_job and the job worker timeout at integration/modal_app.py:333. The first step is to find out what job fc-01M79WBAVFWAF8K05Q36X236G5 did (finished, errored, or hit the 1800s worker timeout), which needs hosted-server or Modal access. Done means the cause is known and the team has decided whether to shorten the default window or document the expected duration.

由索引模型根据 Issue 内容生成。

描述

What

On the hosted server, score_reform with model="obr" and the default five-year window, started through start_job, is still running after 600 seconds. It finished inside that limit on every daily run up to 30 October and has not on any run since.

This is the call a user gets from the documented default, so anyone polling get_job_result for an OBR reform score waits more than ten minutes, with no way to tell a slow job from a stuck one.

It is described in the body of #237 but has no issue of its own, and #237 deliberately does not change it.

Evidence

integration/tests/test_remote_mcp.py::test_score_reform_default_window_works_through_a_job in the scheduled Validate live deployment runs:

Date Run This test Suite time
30 Oct 41018496516 passed 12 min 23 s
31 Oct 41179371760 did not finish within 600s 18 min 47 s
5 Nov 41985297122 same 19 min 51 s
10 Nov 42773283063 same 18 min 32 s
13 Nov 43383676374 same, job fc-01M79WBAVFWAF8K05Q36X236G5 19 min 33 s

The only deploy between the last pass and the first failure is 41063876937 (30 Oct, 153cf419), which moved policyengine[models] from >=4,<5 to ==6.11.1 and pinned policyengine-uk==2.151.0. That points at the static costing step, but nothing here measures it.

Side effects

  • Validate live deployment has failed on every scheduled run since at least 25 October (20 in a row, for changing reasons), so it no longer signals a new breakage. #237 fixes the other two failing tests; this one keeps it red.
  • Each daily run starts one of these jobs and leaves it running after the test gives up. The job worker's own limit is 30 minutes (timeout=1800, integration/modal_app.py:333), which at the rate stated in that file's header (about $0.00023 a second) caps a stuck job at roughly $0.41 a day. I have not checked how long they actually run, because that needs a Modal call.

To settle it (all need the hosted server or Modal, so not run here)

  1. get_job_result on fc-01M79WBAVFWAF8K05Q36X236G5: did it finish, error, or hit the worker timeout?
  2. Modal's function-call durations for the job worker before and after 30 October.
  3. If it is simply slower, decide whether the default window should be shorter or the tool should say how long to expect; if it is stuck, that is a bug in the job path.
主要语言
HTML
星标
3
派生
1
平均合并
1 天 20 小时
30 天内合并 PR
53

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

PolicyEngine/macro 的其他 Issue

查看 PolicyEngine/macro 的全部 Issue

相似的 Issue

更多 Backend & API Design Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。