From 4c4c99229842fd1ed19ecfc4d253b377010cae7f Mon Sep 17 00:00:00 2001 From: Kaloyan Naumov Date: Wed, 2 Dec 2026 09:17:55 +0000 Subject: [PATCH 01/13] Code delta workers fetch the checkout under code_git_fetch_timeout_s The four delta workers (scip_delta, scip_go_delta, scip_ts_delta, scip_py_delta) called compiler_tier.git for the checkout fetch without timeout_s, so the helper's 600 s default applied. On a repository with a multi-gigabyte pack the first fetch was killed on every pass before refs/loom/scip-head was recorded, and each retry re-sent the whole pack and left its temporary pack behind. scip_full already gives the same fetch code_git_fetch_timeout_s; the delta workers now pass it too. Each worker's first-run test records the fetch's keyword arguments and asserts the configured timeout, set to a value no default can match. Co-Authored-By: Claude Sonnet 5.5 Signed-off-by: Kaloyan Naumov --- server/code/workers/scip_delta.py | 7 ++++++- server/code/workers/scip_go_delta.py | 7 ++++++- server/code/workers/scip_py_delta.py | 7 ++++++- server/code/workers/scip_ts_delta.py | 7 ++++++- tests/unit/test_code_scip_delta_worker.py | 3 +++ tests/unit/test_code_scip_go_delta_worker.py | 4 ++++ tests/unit/test_code_scip_py_delta_worker.py | 4 ++++ tests/unit/test_code_scip_ts_delta_worker.py | 4 ++++ 8 files changed, 39 insertions(+), 4 deletions(-) diff --git a/server/code/workers/scip_delta.py b/server/code/workers/scip_delta.py index 9832e6cdb13..1b7c9234c42 100644 --- a/server/code/workers/scip_delta.py +++ b/server/code/workers/scip_delta.py @@ -125,7 +125,12 @@ async def _run_repo(repo: CodeRepo, cfg: RepoConfig, result: CodeScipDeltaResult # fetch and stalls the compiler tier. Only `submodule update` below needs # pins, and only the ones at the target itself; it fetches the URLs the # repository's .gitmodules names, so it goes through the egress proxy. - await git(checkout, *checkout_fetch_args(bare, target), local_remote=bare) + await git( + checkout, + *checkout_fetch_args(bare, target), + local_remote=bare, + timeout_s=settings.code_git_fetch_timeout_s, + ) await git(checkout, "checkout", "--force", target) await git( checkout, diff --git a/server/code/workers/scip_go_delta.py b/server/code/workers/scip_go_delta.py index d021159626b..ece76bc1c85 100644 --- a/server/code/workers/scip_go_delta.py +++ b/server/code/workers/scip_go_delta.py @@ -304,7 +304,12 @@ async def _run_repo(repo: CodeRepo, cfg: RepoConfig, result: CodeScipGoDeltaResu if missing: result.skipped.append(f"{cfg.namespace}: {missing}") return False - await git(checkout, *checkout_fetch_args(bare, target), local_remote=bare) + await git( + checkout, + *checkout_fetch_args(bare, target), + local_remote=bare, + timeout_s=settings.code_git_fetch_timeout_s, + ) await git(checkout, "checkout", "--force", target) # base -> the modules to run from it; [] is every module. A module still to retry diff --git a/server/code/workers/scip_py_delta.py b/server/code/workers/scip_py_delta.py index a5252bea97c..8fd9459cc55 100644 --- a/server/code/workers/scip_py_delta.py +++ b/server/code/workers/scip_py_delta.py @@ -100,7 +100,12 @@ async def _run_repo(repo: CodeRepo, cfg: RepoConfig, result: CodeScipPyDeltaResu if missing: result.skipped.append(f"{cfg.namespace}: {missing}") return - await git(checkout, *checkout_fetch_args(bare, target), local_remote=bare) + await git( + checkout, + *checkout_fetch_args(bare, target), + local_remote=bare, + timeout_s=settings.code_git_fetch_timeout_s, + ) await git(checkout, "checkout", "--force", target) with tempfile.TemporaryDirectory(prefix="scip_py_delta_") as tmp: delta_path = Path(tmp) / "delta.json" diff --git a/server/code/workers/scip_ts_delta.py b/server/code/workers/scip_ts_delta.py index 89370d8b102..60183214b32 100644 --- a/server/code/workers/scip_ts_delta.py +++ b/server/code/workers/scip_ts_delta.py @@ -120,7 +120,12 @@ async def _run_repo(repo: CodeRepo, cfg: RepoConfig, result: CodeScipTsDeltaResu if missing: result.skipped.append(f"{cfg.namespace}: {missing}") return - await git(checkout, *checkout_fetch_args(bare, target), local_remote=bare) + await git( + checkout, + *checkout_fetch_args(bare, target), + local_remote=bare, + timeout_s=settings.code_git_fetch_timeout_s, + ) await git(checkout, "checkout", "--force", target) lockfile_changed = bool(scip_commit and await _lockfile_changed(checkout, scip_commit, target)) if lockfile_changed: diff --git a/tests/unit/test_code_scip_delta_worker.py b/tests/unit/test_code_scip_delta_worker.py index 12b4bc0fe72..58312c9ad80 100644 --- a/tests/unit/test_code_scip_delta_worker.py +++ b/tests/unit/test_code_scip_delta_worker.py @@ -91,6 +91,7 @@ async def test_fetch_does_not_recurse_submodules(monkeypatch, tmp_path): monkeypatch.setattr(settings, "code_scip_checkout_dir", str(checkout)) monkeypatch.setattr(settings, "code_git_dir", str(bare)) monkeypatch.setattr(settings, "code_scip_clang_path", str(clang)) + monkeypatch.setattr(settings, "code_git_fetch_timeout_s", 7777.0) git_calls: list[tuple[str, ...]] = [] git_kwargs: list[dict[str, Any]] = [] @@ -126,6 +127,8 @@ async def fake_git(cwd, *args, **kw): assert fetches, "the delta path never fetched" assert "--recurse-submodules=no" in fetches[0] assert "token" not in git_kwargs[git_calls.index(fetches[0])] + # the fetch of a large checkout gets the configured budget, not the helper default + assert git_kwargs[git_calls.index(fetches[0])]["timeout_s"] == 7777.0 # the submodule pins come with the entry's token, so a private submodule is fetched sub = git_kwargs[next(i for i, c in enumerate(git_calls) if c[0] == "submodule")] assert sub["token"] == "ghs_test" and sub["remote"] == "https://github.com/o/private" diff --git a/tests/unit/test_code_scip_go_delta_worker.py b/tests/unit/test_code_scip_go_delta_worker.py index 5e5514389e5..a8a7e38879a 100644 --- a/tests/unit/test_code_scip_go_delta_worker.py +++ b/tests/unit/test_code_scip_go_delta_worker.py @@ -116,10 +116,13 @@ async def test_missing_toolchain_skips_with_the_reason(monkeypatch, tmp_path: Pa @pytest.mark.asyncio async def test_first_run_is_full_over_every_module_and_applies_each_delta(monkeypatch, tmp_path): checkout, bare = _host(monkeypatch, tmp_path) + monkeypatch.setattr(w.settings, "code_git_fetch_timeout_s", 7777.0) git_calls: list[tuple[str, ...]] = [] + git_kwargs: list[dict[str, Any]] = [] async def fake_git(cwd, *args, **kw): git_calls.append(args) + git_kwargs.append(kw) harness_calls: list[tuple[str, str, list[str]]] = [] @@ -166,6 +169,7 @@ async def fake_apply(repo, org, ns, delta): assert harness_calls == [("--full", "b" * 40, [])] # no watermark: every module assert git_calls[0][:2] == ("fetch", "--recurse-submodules=no") and str(bare) in git_calls[0] assert git_calls[1] == ("checkout", "--force", "b" * 40) + assert git_kwargs[0]["timeout_s"] == 7777.0 # the fetch gets the configured budget assert sorted(applied) == ["lib/a.go", "svc/a.go"] assert res.modules_skipped == ["code-go: experiments/broken: go mod download failed: x"] repo.set_state.assert_any_await("org", "code-go", "scip_commit_go", "b" * 40) diff --git a/tests/unit/test_code_scip_py_delta_worker.py b/tests/unit/test_code_scip_py_delta_worker.py index 763f47ade01..2bdc3c75f92 100644 --- a/tests/unit/test_code_scip_py_delta_worker.py +++ b/tests/unit/test_code_scip_py_delta_worker.py @@ -92,10 +92,13 @@ async def test_first_run_is_full_and_the_delta_is_applied(monkeypatch, tmp_path: monkeypatch.setattr(w.settings, "code_scip_checkout_dir", str(checkout)) monkeypatch.setattr(w.settings, "code_git_dir", str(bare)) monkeypatch.setattr(w.settings, "code_scip_python_path", sys.executable) + monkeypatch.setattr(w.settings, "code_git_fetch_timeout_s", 7777.0) git_calls: list[tuple[str, ...]] = [] + git_kwargs: list[dict[str, Any]] = [] async def fake_git(cwd, *args, **kw): git_calls.append(args) + git_kwargs.append(kw) harness_calls: list[tuple[str, str]] = [] @@ -136,6 +139,7 @@ async def fake_apply(repo, org, ns, delta): assert harness_calls == [("--full", "b" * 40)] assert git_calls[0][:2] == ("fetch", "--recurse-submodules=no") and str(bare) in git_calls[0] assert git_calls[1] == ("checkout", "--force", "b" * 40) + assert git_kwargs[0]["timeout_s"] == 7777.0 # the fetch gets the configured budget assert applied == ["b" * 40] repo.set_state.assert_awaited_with("org", "code-py", "scip_commit_py", "b" * 40) diff --git a/tests/unit/test_code_scip_ts_delta_worker.py b/tests/unit/test_code_scip_ts_delta_worker.py index fffab7f1894..e9b5073b0d5 100644 --- a/tests/unit/test_code_scip_ts_delta_worker.py +++ b/tests/unit/test_code_scip_ts_delta_worker.py @@ -117,10 +117,13 @@ async def test_first_run_is_full_and_the_delta_is_applied( bare.mkdir() monkeypatch.setattr(w.settings, "code_scip_checkout_dir", str(checkout)) monkeypatch.setattr(w.settings, "code_git_dir", str(bare)) + monkeypatch.setattr(w.settings, "code_git_fetch_timeout_s", 7777.0) git_calls: list[tuple[str, ...]] = [] + git_kwargs: list[dict[str, Any]] = [] async def fake_git(cwd, *args, **kw): git_calls.append(args) + git_kwargs.append(kw) harness_calls: list[tuple[str, str]] = [] @@ -161,6 +164,7 @@ async def fake_apply(repo, org, ns, delta): assert harness_calls == [("--full", "b" * 40)] # no watermark: the first index is full assert git_calls[0][:2] == ("fetch", "--recurse-submodules=no") and str(bare) in git_calls[0] assert git_calls[1] == ("checkout", "--force", "b" * 40) + assert git_kwargs[0]["timeout_s"] == 7777.0 # the fetch gets the configured budget assert applied == ["b" * 40] repo.set_state.assert_awaited_with("org", "code-ts", "scip_commit_ts", "b" * 40) From 13ab19fcdc523bce7e2606152227b4078f7484fd Mon Sep 17 00:00:00 2001 From: Kaloyan Naumov Date: Wed, 2 Dec 2026 09:33:32 +0000 Subject: [PATCH 02/13] code: delta workers force-check-out and update submodules under the fetch budget `code_git_fetch_timeout_s` covers a fetch, a forced checkout and a submodule update, as `scip_full.move_checkout` applies it. The delta workers gave only the fetch that budget; the forced checkout, which writes the whole tree of a large repository into an empty checkout on the first run, and the C/C++ worker's submodule update kept the 600 s default. The Go, TypeScript and Python workers pass the budget to `checkout --force`. The C/C++ worker runs exactly `move_checkout`'s three steps, so it calls it; each step gains one retry. Co-Authored-By: Claude Sonnet 5.5 Signed-off-by: Kaloyan Naumov --- server/code/workers/scip_delta.py | 24 ++------------------ server/code/workers/scip_go_delta.py | 8 ++++++- server/code/workers/scip_py_delta.py | 8 ++++++- server/code/workers/scip_ts_delta.py | 8 ++++++- tests/unit/test_code_compiler_tier_runner.py | 4 +++- tests/unit/test_code_scip_delta_worker.py | 13 ++++++++--- tests/unit/test_code_scip_py_delta_worker.py | 4 +++- tests/unit/test_code_scip_ts_delta_worker.py | 4 +++- 8 files changed, 42 insertions(+), 31 deletions(-) diff --git a/server/code/workers/scip_delta.py b/server/code/workers/scip_delta.py index 1b7c9234c42..e56445e90fa 100644 --- a/server/code/workers/scip_delta.py +++ b/server/code/workers/scip_delta.py @@ -31,9 +31,7 @@ from typing import TYPE_CHECKING from server.code.app.index.compiler_tier import ( - checkout_fetch_args, compiler_target, - git, harness_failure, open_tier_delta, refusal_held, @@ -45,7 +43,7 @@ from server.code.app.index.entry_lock import check_held from server.code.app.index.gitrepo import git_config_env from server.code.app.index.sandbox import tool_mounts -from server.code.app.index.scip_full import work_dir +from server.code.app.index.scip_full import move_checkout, work_dir from server.core.paths import SCIP_HARNESS_DIR from server.settings import settings @@ -125,25 +123,7 @@ async def _run_repo(repo: CodeRepo, cfg: RepoConfig, result: CodeScipDeltaResult # fetch and stalls the compiler tier. Only `submodule update` below needs # pins, and only the ones at the target itself; it fetches the URLs the # repository's .gitmodules names, so it goes through the egress proxy. - await git( - checkout, - *checkout_fetch_args(bare, target), - local_remote=bare, - timeout_s=settings.code_git_fetch_timeout_s, - ) - await git(checkout, "checkout", "--force", target) - await git( - checkout, - "submodule", - "update", - "--init", - "--recursive", - "--quiet", - network=True, - token=cfg.github_token, - remote=cfg.git_remote, - proxy_identity=cfg.git_proxy_identity, - ) + await move_checkout(checkout, bare, target, cfg) with tempfile.TemporaryDirectory(prefix="scip_delta_", dir=work_dir()) as tmp: delta_path = Path(tmp) / "delta.json" diff --git a/server/code/workers/scip_go_delta.py b/server/code/workers/scip_go_delta.py index ece76bc1c85..28df04226a4 100644 --- a/server/code/workers/scip_go_delta.py +++ b/server/code/workers/scip_go_delta.py @@ -310,7 +310,13 @@ async def _run_repo(repo: CodeRepo, cfg: RepoConfig, result: CodeScipGoDeltaResu local_remote=bare, timeout_s=settings.code_git_fetch_timeout_s, ) - await git(checkout, "checkout", "--force", target) + await git( + checkout, + "checkout", + "--force", + target, + timeout_s=settings.code_git_fetch_timeout_s, + ) # base -> the modules to run from it; [] is every module. A module still to retry # runs from the base it failed at, which covers any later window that touched it. diff --git a/server/code/workers/scip_py_delta.py b/server/code/workers/scip_py_delta.py index 8fd9459cc55..8168dc6abf7 100644 --- a/server/code/workers/scip_py_delta.py +++ b/server/code/workers/scip_py_delta.py @@ -106,7 +106,13 @@ async def _run_repo(repo: CodeRepo, cfg: RepoConfig, result: CodeScipPyDeltaResu local_remote=bare, timeout_s=settings.code_git_fetch_timeout_s, ) - await git(checkout, "checkout", "--force", target) + await git( + checkout, + "checkout", + "--force", + target, + timeout_s=settings.code_git_fetch_timeout_s, + ) with tempfile.TemporaryDirectory(prefix="scip_py_delta_") as tmp: delta_path = Path(tmp) / "delta.json" await _run_harness(checkout, scip_commit or "--full", target, delta_path) diff --git a/server/code/workers/scip_ts_delta.py b/server/code/workers/scip_ts_delta.py index 60183214b32..a2c94c0a204 100644 --- a/server/code/workers/scip_ts_delta.py +++ b/server/code/workers/scip_ts_delta.py @@ -126,7 +126,13 @@ async def _run_repo(repo: CodeRepo, cfg: RepoConfig, result: CodeScipTsDeltaResu local_remote=bare, timeout_s=settings.code_git_fetch_timeout_s, ) - await git(checkout, "checkout", "--force", target) + await git( + checkout, + "checkout", + "--force", + target, + timeout_s=settings.code_git_fetch_timeout_s, + ) lockfile_changed = bool(scip_commit and await _lockfile_changed(checkout, scip_commit, target)) if lockfile_changed: note = ( diff --git a/tests/unit/test_code_compiler_tier_runner.py b/tests/unit/test_code_compiler_tier_runner.py index 489b75da55a..8438a1998d7 100644 --- a/tests/unit/test_code_compiler_tier_runner.py +++ b/tests/unit/test_code_compiler_tier_runner.py @@ -168,7 +168,9 @@ async def test_a_refused_delta_holds_the_tier_without_running_it( async def no_git(*_: Any, **__: Any) -> None: raise AssertionError("a held tier moved its checkout") - monkeypatch.setattr(w, "git", no_git) + # scip_delta moves its checkout through `scip_full.move_checkout`, which calls the helper + monkeypatch.setattr(compiler_tier, "git", no_git) + monkeypatch.setattr(w, "git", no_git, raising=False) from server.code.app.index.delta_file import delta_caps shape = { diff --git a/tests/unit/test_code_scip_delta_worker.py b/tests/unit/test_code_scip_delta_worker.py index 58312c9ad80..433f02ce9dc 100644 --- a/tests/unit/test_code_scip_delta_worker.py +++ b/tests/unit/test_code_scip_delta_worker.py @@ -79,7 +79,7 @@ async def test_fetch_does_not_recurse_submodules(monkeypatch, tmp_path): since rewritten away fatals the whole fetch (contrib/sql-console stalled the compiler tier for 5 days this way). Only `submodule update` needs pins, and only the ones at git_head.""" - from server.code.workers import scip_delta as w + from server.code.app.index import compiler_tier from server.settings import settings checkout = tmp_path / "checkout" @@ -100,7 +100,8 @@ async def fake_git(cwd, *args, **kw): git_calls.append(args) git_kwargs.append(kw) - monkeypatch.setattr(w, "git", fake_git) + # the checkout move is `scip_full.move_checkout`, which calls the tier helper + monkeypatch.setattr(compiler_tier, "git", fake_git) from server.code.app.index.sandbox import JobResult @@ -133,6 +134,10 @@ async def fake_git(cwd, *args, **kw): sub = git_kwargs[next(i for i, c in enumerate(git_calls) if c[0] == "submodule")] assert sub["token"] == "ghs_test" and sub["remote"] == "https://github.com/o/private" assert sub["proxy_identity"] == "acme.widgets-indexer" + # the forced checkout and the submodule update get the fetch budget too + checkout_i = next(i for i, c in enumerate(git_calls) if c[0] == "checkout") + assert git_kwargs[checkout_i]["timeout_s"] == 7777.0 + assert sub["timeout_s"] == 7777.0 @pytest.mark.asyncio @@ -152,7 +157,9 @@ async def test_a_hold_records_the_translation_unit_cap_its_harness_ran_under(mon monkeypatch.setattr(settings, "code_scip_clang_path", str(tmp_path / "scip-clang")) monkeypatch.setattr(settings, "code_scip_delta_max_nodes", 10) monkeypatch.setattr(settings, "code_scip_delta_max_tus", 200) - monkeypatch.setattr(w, "git", AsyncMock()) + from server.code.app.index import compiler_tier + + monkeypatch.setattr(compiler_tier, "git", AsyncMock()) runs: list[str] = [] files = [{"path": f"src/f{i}.cpp", "symbols": [], "edges": []} for i in range(5)] diff --git a/tests/unit/test_code_scip_py_delta_worker.py b/tests/unit/test_code_scip_py_delta_worker.py index 2bdc3c75f92..7b09909e3b6 100644 --- a/tests/unit/test_code_scip_py_delta_worker.py +++ b/tests/unit/test_code_scip_py_delta_worker.py @@ -139,7 +139,9 @@ async def fake_apply(repo, org, ns, delta): assert harness_calls == [("--full", "b" * 40)] assert git_calls[0][:2] == ("fetch", "--recurse-submodules=no") and str(bare) in git_calls[0] assert git_calls[1] == ("checkout", "--force", "b" * 40) - assert git_kwargs[0]["timeout_s"] == 7777.0 # the fetch gets the configured budget + # the fetch and the forced checkout get the configured budget, not the helper default + assert git_kwargs[0]["timeout_s"] == 7777.0 + assert git_kwargs[1]["timeout_s"] == 7777.0 assert applied == ["b" * 40] repo.set_state.assert_awaited_with("org", "code-py", "scip_commit_py", "b" * 40) diff --git a/tests/unit/test_code_scip_ts_delta_worker.py b/tests/unit/test_code_scip_ts_delta_worker.py index e9b5073b0d5..2022c3bf2d7 100644 --- a/tests/unit/test_code_scip_ts_delta_worker.py +++ b/tests/unit/test_code_scip_ts_delta_worker.py @@ -164,7 +164,9 @@ async def fake_apply(repo, org, ns, delta): assert harness_calls == [("--full", "b" * 40)] # no watermark: the first index is full assert git_calls[0][:2] == ("fetch", "--recurse-submodules=no") and str(bare) in git_calls[0] assert git_calls[1] == ("checkout", "--force", "b" * 40) - assert git_kwargs[0]["timeout_s"] == 7777.0 # the fetch gets the configured budget + # the fetch and the forced checkout get the configured budget, not the helper default + assert git_kwargs[0]["timeout_s"] == 7777.0 + assert git_kwargs[1]["timeout_s"] == 7777.0 assert applied == ["b" * 40] repo.set_state.assert_awaited_with("org", "code-ts", "scip_commit_ts", "b" * 40) From 3787e244f9ab03a9ed4ef0afccb5fc0e77810e9d Mon Sep 17 00:00:00 2001 From: Kaloyan Naumov Date: Wed, 2 Dec 2026 09:33:32 +0000 Subject: [PATCH 03/13] code: delta tiers' pass deadline covers the checkout move The compiler tiers' pass deadline was the harness timeout plus 1800 s, sized when the checkout steps ran under the 600 s default. They now run under `code_git_fetch_timeout_s` (3600 s by default), so a slow first fetch plus a full harness run could outlive the deadline and be cancelled mid-apply. Add `max_pass_fetch_budgets` to the registry row: the pass deadline gains that many `code_git_fetch_timeout_s` budgets. The Go, TypeScript and Python tiers move their checkout in two git steps (fetch, forced checkout); the C/C++ tier runs three steps with one retry each, as `scip_full.move_checkout` does. Co-Authored-By: Claude Sonnet 5.5 Signed-off-by: Kaloyan Naumov --- server/workers/registry.py | 12 +++++ tests/unit/snapshots/worker_registry.json | 48 ++++++++++---------- tests/unit/test_code_scip_go_delta_worker.py | 8 +++- tests/unit/test_worker_registry_rows.py | 23 ++++++++++ 4 files changed, 65 insertions(+), 26 deletions(-) diff --git a/server/workers/registry.py b/server/workers/registry.py index 69feb29a196..39aee6af999 100644 --- a/server/workers/registry.py +++ b/server/workers/registry.py @@ -114,6 +114,9 @@ class _Worker: # Seconds added to `max_pass_setting`: a harness timeout leaves the steps # around the harness (fetch, submodules, apply) no time of their own. max_pass_headroom: float = 0.0 + # Git steps of a checkout move, each of which may run for + # `code_git_fetch_timeout_s` (a retry doubles a step); added on top of the headroom. + max_pass_fetch_budgets: int = 0 # WorkerSpec.max_pass_seconds from this module attribute. max_pass_attr: str | None = None # WorkerSpec.first_pass_due from this module attribute. @@ -136,6 +139,7 @@ def _spec_for(row: _Worker) -> WorkerSpec: max_pass = None if row.max_pass_setting is not None: max_pass = float(getattr(settings, row.max_pass_setting)) + row.max_pass_headroom + max_pass += row.max_pass_fetch_budgets * float(settings.code_git_fetch_timeout_s) if row.max_pass_attr is not None: max_pass = float(getattr(mod, row.max_pass_attr)) return WorkerSpec( @@ -398,6 +402,8 @@ def _spec_for(row: _Worker) -> WorkerSpec: "code_scip_delta_interval_seconds", max_pass_setting="code_scip_delta_timeout_seconds", max_pass_headroom=_TIER_HEADROOM_S, + # fetch, forced checkout and submodule update, one retry each + max_pass_fetch_budgets=6, ), _Worker( "code_scip_ts_delta", @@ -406,6 +412,8 @@ def _spec_for(row: _Worker) -> WorkerSpec: "code_scip_ts_delta_interval_seconds", max_pass_setting="code_scip_ts_delta_timeout_seconds", max_pass_headroom=_TIER_HEADROOM_S, + # fetch and forced checkout + max_pass_fetch_budgets=2, ), _Worker( "code_scip_py_delta", @@ -414,6 +422,8 @@ def _spec_for(row: _Worker) -> WorkerSpec: "code_scip_py_delta_interval_seconds", max_pass_setting="code_scip_py_delta_timeout_seconds", max_pass_headroom=_TIER_HEADROOM_S, + # fetch and forced checkout + max_pass_fetch_budgets=2, ), _Worker( "code_scip_go_delta", @@ -422,6 +432,8 @@ def _spec_for(row: _Worker) -> WorkerSpec: "code_scip_go_delta_interval_seconds", max_pass_setting="code_scip_go_delta_timeout_seconds", max_pass_headroom=_TIER_HEADROOM_S, + # fetch and forced checkout + max_pass_fetch_budgets=2, ), # The C++ tier's full re-index (seeds and heals scip_commit) and the # SQL <-> C++ crossref. diff --git a/tests/unit/snapshots/worker_registry.json b/tests/unit/snapshots/worker_registry.json index 945dbb070dc..417ddc034bc 100644 --- a/tests/unit/snapshots/worker_registry.json +++ b/tests/unit/snapshots/worker_registry.json @@ -467,13 +467,13 @@ } }, { - "deadline_seconds()": 5400.0, + "deadline_seconds()": 27000.0, "due_scope": null, "first_pass_due": null, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, - "max_pass_seconds": 5400.0, + "max_pass_seconds": 27000.0, "name": "code_scip_delta", "owned_tables": [], "pass_callable": { @@ -481,13 +481,13 @@ } }, { - "deadline_seconds()": 5400.0, + "deadline_seconds()": 12600.0, "due_scope": null, "first_pass_due": null, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 600, - "max_pass_seconds": 5400.0, + "max_pass_seconds": 12600.0, "name": "code_scip_ts_delta", "owned_tables": [], "pass_callable": { @@ -495,13 +495,13 @@ } }, { - "deadline_seconds()": 5400.0, + "deadline_seconds()": 12600.0, "due_scope": null, "first_pass_due": null, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 600, - "max_pass_seconds": 5400.0, + "max_pass_seconds": 12600.0, "name": "code_scip_py_delta", "owned_tables": [], "pass_callable": { @@ -509,13 +509,13 @@ } }, { - "deadline_seconds()": 9000.0, + "deadline_seconds()": 16200.0, "due_scope": null, "first_pass_due": null, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 900, - "max_pass_seconds": 9000.0, + "max_pass_seconds": 16200.0, "name": "code_scip_go_delta", "owned_tables": [], "pass_callable": { @@ -1186,13 +1186,13 @@ } }, { - "deadline_seconds()": 5400.0, + "deadline_seconds()": 27000.0, "due_scope": null, "first_pass_due": null, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, - "max_pass_seconds": 5400.0, + "max_pass_seconds": 27000.0, "name": "code_scip_delta", "owned_tables": [], "pass_callable": { @@ -1200,13 +1200,13 @@ } }, { - "deadline_seconds()": 5400.0, + "deadline_seconds()": 12600.0, "due_scope": null, "first_pass_due": null, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 600, - "max_pass_seconds": 5400.0, + "max_pass_seconds": 12600.0, "name": "code_scip_ts_delta", "owned_tables": [], "pass_callable": { @@ -1214,13 +1214,13 @@ } }, { - "deadline_seconds()": 5400.0, + "deadline_seconds()": 12600.0, "due_scope": null, "first_pass_due": null, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 600, - "max_pass_seconds": 5400.0, + "max_pass_seconds": 12600.0, "name": "code_scip_py_delta", "owned_tables": [], "pass_callable": { @@ -1228,13 +1228,13 @@ } }, { - "deadline_seconds()": 9000.0, + "deadline_seconds()": 16200.0, "due_scope": null, "first_pass_due": null, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 900, - "max_pass_seconds": 9000.0, + "max_pass_seconds": 16200.0, "name": "code_scip_go_delta", "owned_tables": [], "pass_callable": { @@ -1833,13 +1833,13 @@ } }, { - "deadline_seconds()": 5400.0, + "deadline_seconds()": 27000.0, "due_scope": null, "first_pass_due": null, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, - "max_pass_seconds": 5400.0, + "max_pass_seconds": 27000.0, "name": "code_scip_delta", "owned_tables": [], "pass_callable": { @@ -1847,13 +1847,13 @@ } }, { - "deadline_seconds()": 5400.0, + "deadline_seconds()": 12600.0, "due_scope": null, "first_pass_due": null, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 600, - "max_pass_seconds": 5400.0, + "max_pass_seconds": 12600.0, "name": "code_scip_ts_delta", "owned_tables": [], "pass_callable": { @@ -1861,13 +1861,13 @@ } }, { - "deadline_seconds()": 5400.0, + "deadline_seconds()": 12600.0, "due_scope": null, "first_pass_due": null, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 600, - "max_pass_seconds": 5400.0, + "max_pass_seconds": 12600.0, "name": "code_scip_py_delta", "owned_tables": [], "pass_callable": { @@ -1875,13 +1875,13 @@ } }, { - "deadline_seconds()": 9000.0, + "deadline_seconds()": 16200.0, "due_scope": null, "first_pass_due": null, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 900, - "max_pass_seconds": 9000.0, + "max_pass_seconds": 16200.0, "name": "code_scip_go_delta", "owned_tables": [], "pass_callable": { diff --git a/tests/unit/test_code_scip_go_delta_worker.py b/tests/unit/test_code_scip_go_delta_worker.py index a8a7e38879a..e03a0f67c50 100644 --- a/tests/unit/test_code_scip_go_delta_worker.py +++ b/tests/unit/test_code_scip_go_delta_worker.py @@ -169,7 +169,9 @@ async def fake_apply(repo, org, ns, delta): assert harness_calls == [("--full", "b" * 40, [])] # no watermark: every module assert git_calls[0][:2] == ("fetch", "--recurse-submodules=no") and str(bare) in git_calls[0] assert git_calls[1] == ("checkout", "--force", "b" * 40) - assert git_kwargs[0]["timeout_s"] == 7777.0 # the fetch gets the configured budget + # the fetch and the forced checkout get the configured budget, not the helper default + assert git_kwargs[0]["timeout_s"] == 7777.0 + assert git_kwargs[1]["timeout_s"] == 7777.0 assert sorted(applied) == ["lib/a.go", "svc/a.go"] assert res.modules_skipped == ["code-go: experiments/broken: go mod download failed: x"] repo.set_state.assert_any_await("org", "code-go", "scip_commit_go", "b" * 40) @@ -350,7 +352,9 @@ def test_registry_gives_the_go_worker_its_own_deadline(monkeypatch): monkeypatch.setattr(settings, "code_scip_delta_enabled", False, raising=False) monkeypatch.setattr(settings, "code_scip_ts_delta_enabled", False, raising=False) spec = next(w for w in registry.enabled_workers() if w.name == "code_scip_go_delta") - assert spec.deadline_seconds() == 7200.0 + registry._TIER_HEADROOM_S + # the fetch and the forced checkout each run under `code_git_fetch_timeout_s` + fetch_s = float(settings.code_git_fetch_timeout_s) + assert spec.deadline_seconds() == 7200.0 + registry._TIER_HEADROOM_S + 2 * fetch_s assert spec.interval_seconds == settings.code_scip_go_delta_interval_seconds diff --git a/tests/unit/test_worker_registry_rows.py b/tests/unit/test_worker_registry_rows.py index 9a88aa7f420..8a9e1076e6b 100644 --- a/tests/unit/test_worker_registry_rows.py +++ b/tests/unit/test_worker_registry_rows.py @@ -141,6 +141,29 @@ def test_a_workers_spec_takes_its_pass_deadline_from_its_setting( assert registry._spec_for(row).max_pass_seconds == 42.0 +@pytest.mark.parametrize( + ("name", "harness_setting", "steps"), + [ + ("code_scip_delta", "code_scip_delta_timeout_seconds", 6), + ("code_scip_ts_delta", "code_scip_ts_delta_timeout_seconds", 2), + ("code_scip_py_delta", "code_scip_py_delta_timeout_seconds", 2), + ("code_scip_go_delta", "code_scip_go_delta_timeout_seconds", 2), + ], +) +def test_a_compiler_tiers_pass_deadline_covers_its_checkout_move( + name: str, harness_setting: str, steps: int, monkeypatch: pytest.MonkeyPatch +) -> None: + """The checkout steps run under `code_git_fetch_timeout_s`; the pass outlives + the harness timeout by the headroom plus every step's budget, so a slow first + fetch is not cut by the supervisor before the harness runs.""" + from server.settings import settings + + monkeypatch.setattr(settings, harness_setting, 3500.0) + monkeypatch.setattr(settings, "code_git_fetch_timeout_s", 3600.0) + spec = registry._spec_for(_row(name)) + assert spec.max_pass_seconds == 3500.0 + registry._TIER_HEADROOM_S + steps * 3600.0 + + def test_the_extraction_queue_keeps_four_intervals_while_its_deadline_is_unset( monkeypatch: pytest.MonkeyPatch, ) -> None: From d0efea1d7e83e632965f08c62c115656309c1194 Mon Sep 17 00:00:00 2001 From: Kaloyan Naumov Date: Wed, 2 Dec 2026 09:33:32 +0000 Subject: [PATCH 04/13] code: move_checkout docstring no longer cites the delta's 600 s The delta workers now move their checkouts under `code_git_fetch_timeout_s` too, so the remark that the delta's 600 s is sized for a few merges is false. Co-Authored-By: Claude Sonnet 5.5 Signed-off-by: Kaloyan Naumov --- server/code/app/index/scip_full.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/code/app/index/scip_full.py b/server/code/app/index/scip_full.py index 6548e498318..131cfc001cf 100644 --- a/server/code/app/index/scip_full.py +++ b/server/code/app/index/scip_full.py @@ -73,9 +73,9 @@ def __init__(self, returncode: int, tail: str) -> None: async def move_checkout(checkout: Path, bare: Path, target: str, cfg: RepoConfig) -> None: """Fetch `target` from the bare clone, force-check it out, then the submodules exactly at their pins. Never recurse submodules on the fetch: one pin rewritten - away upstream fatals the whole fetch. Each step gets a real budget and one retry - (the delta's 600 s is sized for a few merges); the fetch reads the bare clone, - the submodule pins come from the network.""" + away upstream fatals the whole fetch. Each step gets `code_git_fetch_timeout_s` + and one retry; the fetch reads the bare clone, the submodule pins come from the + network. The delta workers move their checkouts under the same budget.""" await compiler_tier.git( checkout, *compiler_tier.checkout_fetch_args(bare, target), From bd89f37b58f6f096079b14874683ead50ca49942 Mon Sep 17 00:00:00 2001 From: Kaloyan Naumov Date: Wed, 2 Dec 2026 11:22:21 +0000 Subject: [PATCH 05/13] Read a pass's outer deadline from the live settings at admission A tier's pass deadline sums its harness timeout, its headroom and a number of fetch budgets at code_git_fetch_timeout_s. The registry computed that sum once, when the supervisor built the specs, while the delta workers read code_git_fetch_timeout_s on every fetch. Raising it at runtime let the git steps outlive the frozen deadline, and the pass was cancelled mid-checkout. A spec built from a setting now carries a live deadline function, and the supervisor calls it when a pass is admitted, so a runtime update of any setting the sum reads reaches the next pass. The frozen value stays on the spec for readers that want the build-time number. Assisted-by: Claude Code Co-Authored-By: Claude Sonnet 5.5 Signed-off-by: Kaloyan Naumov --- server/workers/registry.py | 33 +- server/workers/supervisor.py | 5 +- tests/unit/snapshots/worker_registry.json | 754 ++++++++++++++++++++ tests/unit/test_worker_pass_deadline.py | 52 ++ tests/unit/test_worker_registry_snapshot.py | 7 +- 5 files changed, 845 insertions(+), 6 deletions(-) diff --git a/server/workers/registry.py b/server/workers/registry.py index 39aee6af999..fb0aabc5b81 100644 --- a/server/workers/registry.py +++ b/server/workers/registry.py @@ -41,6 +41,10 @@ class WorkerSpec: # may wait on a provider retry loop), at most DEADLINE_CAP_SECONDS. A # pass past its deadline is cancelled and counted as a failure. max_pass_seconds: float | None = None + # The deadline read from the live settings, asked when a pass is admitted. + # Set, it wins over `max_pass_seconds` (the value the specs were built + # with): a runtime update of a setting the deadline sums reaches the next pass. + live_max_pass_seconds: Callable[[], float] | None = None # Asked once, when the supervisor starts this worker (the # lease is held). True → the first pass runs now instead of after the # boot stagger — a weekly worker whose output table is empty or older @@ -63,8 +67,11 @@ class WorkerSpec: idle_interval_seconds: float | None = None def deadline_seconds(self) -> float: - if self.max_pass_seconds is not None and self.max_pass_seconds > 0: - return float(self.max_pass_seconds) + seconds = self.max_pass_seconds + if self.live_max_pass_seconds is not None: + seconds = self.live_max_pass_seconds() + if seconds is not None and seconds > 0: + return float(seconds) return default_max_pass_seconds(self.interval_seconds) def first_pass_hook(self) -> Callable[[], Awaitable[bool]] | None: @@ -131,22 +138,40 @@ def cadence_seconds(self) -> int | float: return cast(int | float, getattr(settings, self.interval)) +def _setting_deadline(row: _Worker) -> float: + """A row's pass deadline from the settings as they are now: its own + setting, the headroom, and the fetch budgets at `code_git_fetch_timeout_s`.""" + assert row.max_pass_setting is not None + total = float(getattr(settings, row.max_pass_setting)) + row.max_pass_headroom + return total + row.max_pass_fetch_budgets * float(settings.code_git_fetch_timeout_s) + + +def _live_deadline(row: _Worker) -> Callable[[], float]: + def live() -> float: + return _setting_deadline(row) + + return live + + def _spec_for(row: _Worker) -> WorkerSpec: """Import an enabled worker and build its spec — the `WorkerSpec(...)` each row would otherwise spell out, field for field.""" mod = importlib.import_module(row.module) pass_callable = getattr(mod, row.pass_attr) max_pass = None + live_max_pass = None if row.max_pass_setting is not None: - max_pass = float(getattr(settings, row.max_pass_setting)) + row.max_pass_headroom - max_pass += row.max_pass_fetch_budgets * float(settings.code_git_fetch_timeout_s) + max_pass = _setting_deadline(row) + live_max_pass = _live_deadline(row) if row.max_pass_attr is not None: max_pass = float(getattr(mod, row.max_pass_attr)) + live_max_pass = None return WorkerSpec( row.name, row.cadence_seconds(), pass_callable, max_pass_seconds=max_pass, + live_max_pass_seconds=live_max_pass, first_pass_due=getattr(mod, row.first_pass_due) if row.first_pass_due else None, owned_tables=mod.OWNED_TABLES if row.owned_tables else (), due_scope=mod.due_scope if row.owned_tables else None, diff --git a/server/workers/supervisor.py b/server/workers/supervisor.py index d873424fcd8..ce905f5783d 100644 --- a/server/workers/supervisor.py +++ b/server/workers/supervisor.py @@ -253,7 +253,7 @@ async def _supervise(self, spec: WorkerSpec) -> None: # scoped to the worker: every llm.*/embed.* span the pass creates # carries loom.operation=worker. (per-repo code adds org/ns). set_worker_identity(spec.name) - deadline = spec.deadline_seconds() + deadline = spec.deadline_seconds() # refreshed at each pass's admission stagger, state = await _begin_loop(spec) if stagger > 0: try: @@ -288,6 +288,9 @@ async def _supervise(self, spec: WorkerSpec) -> None: # normally; changing models never cancels it mid-write. started = time.monotonic() in_pass = True + # The deadline is read here, from the live settings: a + # runtime update reaches the next pass. + deadline = spec.deadline_seconds() async with asyncio.timeout(deadline): await spec.pass_callable() in_pass = False diff --git a/tests/unit/snapshots/worker_registry.json b/tests/unit/snapshots/worker_registry.json index 417ddc034bc..17abe7a729b 100644 --- a/tests/unit/snapshots/worker_registry.json +++ b/tests/unit/snapshots/worker_registry.json @@ -7,6 +7,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": 30, "interval_seconds": 5, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "embedding_worker", "owned_tables": [], @@ -21,6 +22,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 3600, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "audit_verifier", "owned_tables": [], @@ -37,6 +39,7 @@ "has_first_pass_hook": true, "idle_interval_seconds": null, "interval_seconds": 300, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "adoption_telemetry", "owned_tables": [], @@ -51,6 +54,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 604800, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "recalibration", "owned_tables": [], @@ -65,6 +69,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 60, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "erasure_recovery", "owned_tables": [], @@ -79,6 +84,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 3600, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "erasure_reclaim", "owned_tables": [], @@ -93,6 +99,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "retention_reconcile", "owned_tables": [], @@ -107,6 +114,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 3600, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "document_blob_gc", "owned_tables": [], @@ -121,6 +129,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": 15, "interval_seconds": 0, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='knowledge_ingest', module='server.knowledge.workers.ingest', enabled='knowledge_ingest_enabled', interval='knowledge_ingest_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval='knowledge_ingest_idle_interval_seconds', max_pass_setting='knowledge_ingest_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 900.0, "name": "knowledge_ingest", "owned_tables": [], @@ -135,6 +155,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 3600, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "namespace_gc", "owned_tables": [], @@ -149,6 +170,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "projection_repair", "owned_tables": [], @@ -163,6 +185,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": 10, "interval_seconds": 2, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "pg_delivery", "owned_tables": [], @@ -177,6 +200,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": 10, "interval_seconds": 2, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "knowledge_pg_delivery", "owned_tables": [], @@ -191,6 +215,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 60, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "pg_payload_clear", "owned_tables": [], @@ -205,6 +230,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "usage_fold", "owned_tables": [], @@ -219,6 +245,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 3600.0, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "keeper_sweep", "owned_tables": [], @@ -233,6 +260,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 10.0, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='conflict_resolver', module='server.memory.workers.conflict_resolver', enabled='memory_conflict_resolver_enabled', interval='memory_conflict_resolver_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='memory_conflict_resolver_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 600.0, "name": "conflict_resolver", "owned_tables": [], @@ -247,6 +286,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 600, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "orphan_vector_reconcile", "owned_tables": [], @@ -261,6 +301,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 86400, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "sensitivity_sweep", "owned_tables": [], @@ -275,6 +316,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 1800, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "conversation_titler", "owned_tables": [], @@ -289,6 +331,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 3600, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='query_history', module='server.knowledge.workers.query_history', enabled='knowledge_query_history_enabled', interval='knowledge_query_history_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='knowledge_query_history_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 120.0, "name": "query_history", "owned_tables": [], @@ -305,6 +359,18 @@ "has_first_pass_hook": true, "idle_interval_seconds": null, "interval_seconds": 86400, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='knowledge_gaps', module='server.knowledge.workers.knowledge_gaps', enabled='knowledge_gaps_enabled', interval='knowledge_gaps_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='knowledge_gaps_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due='first_pass_due', owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 3600.0, "name": "knowledge_gaps", "owned_tables": [], @@ -319,6 +385,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 21600, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "profile_consolidation", "owned_tables": [], @@ -333,6 +400,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": 600, "interval_seconds": 120, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='structured_profile', module='server.memory.workers.structured_profile', enabled='structured_profile_enabled', interval='structured_profile_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval='structured_profile_idle_interval_seconds', max_pass_setting='structured_profile_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 600.0, "name": "structured_profile", "owned_tables": [], @@ -347,6 +426,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 3600, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "reflection_distill", "owned_tables": [], @@ -361,6 +441,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": 300, "interval_seconds": 60, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "entity_extractor", "owned_tables": [], @@ -375,6 +456,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 60, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='memory_code_links', module='server.memory.workers.code_links', enabled='memory_code_links_enabled', interval='memory_code_links_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='memory_code_links_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 600.0, "name": "memory_code_links", "owned_tables": [], @@ -389,6 +482,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "memory_expiry_sweep", "owned_tables": [], @@ -403,6 +497,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": 300, "interval_seconds": 60, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "delete_version_check", "owned_tables": [], @@ -417,6 +512,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='observe_extract', module='server.memory.workers.observe_extract', enabled='observe_extract_enabled', interval='observe_extract_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='observe_extract_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 900.0, "name": "observe_extract", "owned_tables": [], @@ -431,6 +538,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 15, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='extraction_queue', module='server.memory.workers.extraction_queue', enabled='extraction_queue_enabled', interval='extraction_queue_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='extraction_queue_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 0.0, "name": "extraction_queue", "owned_tables": [], @@ -445,6 +564,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 120, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='code_ingest', module='server.code.workers.ingest', enabled='code_ingest_enabled', interval='code_ingest_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='code_ingest_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 900.0, "name": "code_ingest", "owned_tables": [], @@ -459,6 +590,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 60, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "code_scip_apply", "owned_tables": [], @@ -473,6 +605,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='code_scip_delta', module='server.code.workers.scip_delta', enabled='code_scip_delta_enabled', interval='code_scip_delta_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='code_scip_delta_timeout_seconds', max_pass_headroom=1800.0, max_pass_fetch_budgets=6, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 27000.0, "name": "code_scip_delta", "owned_tables": [], @@ -487,6 +631,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 600, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='code_scip_ts_delta', module='server.code.workers.scip_ts_delta', enabled='code_scip_ts_delta_enabled', interval='code_scip_ts_delta_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='code_scip_ts_delta_timeout_seconds', max_pass_headroom=1800.0, max_pass_fetch_budgets=2, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 12600.0, "name": "code_scip_ts_delta", "owned_tables": [], @@ -501,6 +657,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 600, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='code_scip_py_delta', module='server.code.workers.scip_py_delta', enabled='code_scip_py_delta_enabled', interval='code_scip_py_delta_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='code_scip_py_delta_timeout_seconds', max_pass_headroom=1800.0, max_pass_fetch_budgets=2, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 12600.0, "name": "code_scip_py_delta", "owned_tables": [], @@ -515,6 +683,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 900, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='code_scip_go_delta', module='server.code.workers.scip_go_delta', enabled='code_scip_go_delta_enabled', interval='code_scip_go_delta_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='code_scip_go_delta_timeout_seconds', max_pass_headroom=1800.0, max_pass_fetch_budgets=2, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 16200.0, "name": "code_scip_go_delta", "owned_tables": [], @@ -529,6 +709,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 900, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='code_scip_full', module='server.code.workers.scip_full', enabled='code_scip_full_enabled', interval='code_scip_full_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='code_scip_full_timeout_seconds', max_pass_headroom=21600.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 50400.0, "name": "code_scip_full", "owned_tables": [], @@ -543,6 +735,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 1800, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "code_crossref", "owned_tables": [], @@ -557,6 +750,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 900, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "code_pr_history", "owned_tables": [], @@ -571,6 +765,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": 1800, "interval_seconds": 900, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='knowledge_source_sync', module='server.knowledge.workers.source_sync', enabled='knowledge_source_sync_enabled', interval='knowledge_source_sync_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval='knowledge_source_sync_idle_interval_seconds', max_pass_setting='knowledge_source_sync_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 600.0, "name": "knowledge_source_sync", "owned_tables": [], @@ -585,6 +791,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": 1800, "interval_seconds": 900, + "live_max_pass_seconds": null, "max_pass_seconds": 60.0, "name": "knowledge_source_retire", "owned_tables": [], @@ -599,6 +806,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='knowledge_source_push', module='server.knowledge.workers.source_push', enabled='knowledge_source_push_enabled', interval='knowledge_source_push_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='knowledge_source_push_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 120.0, "name": "knowledge_source_push", "owned_tables": [], @@ -613,6 +832,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": 120, "interval_seconds": 30, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "code_embed_recovery", "owned_tables": [], @@ -627,6 +847,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 21600, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "entity_communities", "owned_tables": [], @@ -643,6 +864,18 @@ "has_first_pass_hook": true, "idle_interval_seconds": null, "interval_seconds": 604800, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='code_graph_stats', module='server.code.workers.graph_stats', enabled='code_graph_stats_enabled', interval='code_graph_stats_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='code_graph_stats_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due='first_pass_due', owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 3600.0, "name": "code_graph_stats", "owned_tables": [], @@ -659,6 +892,18 @@ "has_first_pass_hook": true, "idle_interval_seconds": null, "interval_seconds": 1800, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='tracker_test_daily', module='server.tracker.workers.test_daily', enabled='tracker_test_daily_enabled', interval='tracker_test_daily_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='tracker_test_daily_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=True)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 900.0, "name": "tracker_test_daily", "owned_tables": [ @@ -676,6 +921,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 604800, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "code_summary", "owned_tables": [], @@ -690,6 +936,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": 300, "interval_seconds": 60, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "task_lease_sweep", "owned_tables": [], @@ -704,6 +951,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "oauth_signin_state_sweep", "owned_tables": [], @@ -718,6 +966,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 60, + "live_max_pass_seconds": null, "max_pass_seconds": 240.0, "name": "mcp_session_run_sweep", "owned_tables": [], @@ -732,6 +981,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": 30, "interval_seconds": 5, + "live_max_pass_seconds": null, "max_pass_seconds": 120.0, "name": "task_webhook_deliver", "owned_tables": [], @@ -746,6 +996,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": 30, "interval_seconds": 5, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='memory_webhook_deliver', module='server.memory.workers.webhook_deliver', enabled='memory_webhook_deliver_enabled', interval='memory_webhook_deliver_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval='memory_webhook_deliver_idle_interval_seconds', max_pass_setting='memory_webhook_deliver_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 120.0, "name": "memory_webhook_deliver", "owned_tables": [], @@ -762,6 +1024,18 @@ "has_first_pass_hook": true, "idle_interval_seconds": null, "interval_seconds": 86400.0, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='tracker_links', module='server.tracker.workers.links', enabled='tracker_links_enabled', interval='tracker_links_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='tracker_links_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=True)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 3600.0, "name": "tracker_links", "owned_tables": [ @@ -780,6 +1054,18 @@ "has_first_pass_hook": true, "idle_interval_seconds": null, "interval_seconds": 1800.0, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='tracker_embed', module='server.tracker.workers.embed', enabled='tracker_embed_enabled', interval='tracker_embed_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='tracker_embed_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=True)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 900.0, "name": "tracker_embed", "owned_tables": [ @@ -796,6 +1082,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 86400.0, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='code_backport_gaps', module='server.code.workers.backport_gaps', enabled='code_backport_gaps_enabled', interval='code_backport_gaps_interval_seconds', pass_attr='run_pass', also_requires='code_pr_history_enabled', idle_interval=None, max_pass_setting='code_backport_gaps_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 3600.0, "name": "code_backport_gaps", "owned_tables": [], @@ -810,6 +1108,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": 120, "interval_seconds": 60, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "code_coverage_notify", "owned_tables": [], @@ -824,6 +1123,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 86400.0, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='code_coverage_import', module='server.code.workers.coverage_import', enabled='code_coverage_import_enabled', interval='code_coverage_import_interval_seconds', pass_attr='run_pass', also_requires='code_intel_enabled', idle_interval=None, max_pass_setting='code_coverage_import_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 7200.0, "name": "code_coverage_import", "owned_tables": [], @@ -840,6 +1151,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": 30, "interval_seconds": 5, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "embedding_worker", "owned_tables": [], @@ -854,6 +1166,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 3600, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "audit_verifier", "owned_tables": [], @@ -870,6 +1183,7 @@ "has_first_pass_hook": true, "idle_interval_seconds": null, "interval_seconds": 300, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "adoption_telemetry", "owned_tables": [], @@ -884,6 +1198,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 604800, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "recalibration", "owned_tables": [], @@ -898,6 +1213,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 60, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "erasure_recovery", "owned_tables": [], @@ -912,6 +1228,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 3600, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "erasure_reclaim", "owned_tables": [], @@ -926,6 +1243,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "retention_reconcile", "owned_tables": [], @@ -940,6 +1258,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 3600, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "document_blob_gc", "owned_tables": [], @@ -954,6 +1273,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": 15, "interval_seconds": 0, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='knowledge_ingest', module='server.knowledge.workers.ingest', enabled='knowledge_ingest_enabled', interval='knowledge_ingest_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval='knowledge_ingest_idle_interval_seconds', max_pass_setting='knowledge_ingest_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 900.0, "name": "knowledge_ingest", "owned_tables": [], @@ -968,6 +1299,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 3600, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "namespace_gc", "owned_tables": [], @@ -982,6 +1314,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "projection_repair", "owned_tables": [], @@ -996,6 +1329,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": 10, "interval_seconds": 2, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "pg_delivery", "owned_tables": [], @@ -1010,6 +1344,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": 10, "interval_seconds": 2, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "knowledge_pg_delivery", "owned_tables": [], @@ -1024,6 +1359,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "usage_fold", "owned_tables": [], @@ -1038,6 +1374,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 3600.0, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "keeper_sweep", "owned_tables": [], @@ -1052,6 +1389,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 600, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "orphan_vector_reconcile", "owned_tables": [], @@ -1066,6 +1404,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 86400, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "sensitivity_sweep", "owned_tables": [], @@ -1080,6 +1419,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 1800, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "conversation_titler", "owned_tables": [], @@ -1094,6 +1434,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": 600, "interval_seconds": 120, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='structured_profile', module='server.memory.workers.structured_profile', enabled='structured_profile_enabled', interval='structured_profile_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval='structured_profile_idle_interval_seconds', max_pass_setting='structured_profile_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 600.0, "name": "structured_profile", "owned_tables": [], @@ -1108,6 +1460,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": 300, "interval_seconds": 60, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "entity_extractor", "owned_tables": [], @@ -1122,6 +1475,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 60, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='memory_code_links', module='server.memory.workers.code_links', enabled='memory_code_links_enabled', interval='memory_code_links_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='memory_code_links_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 600.0, "name": "memory_code_links", "owned_tables": [], @@ -1136,6 +1501,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "memory_expiry_sweep", "owned_tables": [], @@ -1150,6 +1516,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": 300, "interval_seconds": 60, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "delete_version_check", "owned_tables": [], @@ -1164,6 +1531,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 15, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='extraction_queue', module='server.memory.workers.extraction_queue', enabled='extraction_queue_enabled', interval='extraction_queue_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='extraction_queue_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 0.0, "name": "extraction_queue", "owned_tables": [], @@ -1178,6 +1557,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 120, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='code_ingest', module='server.code.workers.ingest', enabled='code_ingest_enabled', interval='code_ingest_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='code_ingest_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 900.0, "name": "code_ingest", "owned_tables": [], @@ -1192,6 +1583,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='code_scip_delta', module='server.code.workers.scip_delta', enabled='code_scip_delta_enabled', interval='code_scip_delta_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='code_scip_delta_timeout_seconds', max_pass_headroom=1800.0, max_pass_fetch_budgets=6, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 27000.0, "name": "code_scip_delta", "owned_tables": [], @@ -1206,6 +1609,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 600, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='code_scip_ts_delta', module='server.code.workers.scip_ts_delta', enabled='code_scip_ts_delta_enabled', interval='code_scip_ts_delta_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='code_scip_ts_delta_timeout_seconds', max_pass_headroom=1800.0, max_pass_fetch_budgets=2, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 12600.0, "name": "code_scip_ts_delta", "owned_tables": [], @@ -1220,6 +1635,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 600, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='code_scip_py_delta', module='server.code.workers.scip_py_delta', enabled='code_scip_py_delta_enabled', interval='code_scip_py_delta_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='code_scip_py_delta_timeout_seconds', max_pass_headroom=1800.0, max_pass_fetch_budgets=2, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 12600.0, "name": "code_scip_py_delta", "owned_tables": [], @@ -1234,6 +1661,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 900, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='code_scip_go_delta', module='server.code.workers.scip_go_delta', enabled='code_scip_go_delta_enabled', interval='code_scip_go_delta_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='code_scip_go_delta_timeout_seconds', max_pass_headroom=1800.0, max_pass_fetch_budgets=2, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 16200.0, "name": "code_scip_go_delta", "owned_tables": [], @@ -1248,6 +1687,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 900, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='code_scip_full', module='server.code.workers.scip_full', enabled='code_scip_full_enabled', interval='code_scip_full_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='code_scip_full_timeout_seconds', max_pass_headroom=21600.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 50400.0, "name": "code_scip_full", "owned_tables": [], @@ -1262,6 +1713,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 1800, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "code_crossref", "owned_tables": [], @@ -1276,6 +1728,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": 1800, "interval_seconds": 900, + "live_max_pass_seconds": null, "max_pass_seconds": 60.0, "name": "knowledge_source_retire", "owned_tables": [], @@ -1292,6 +1745,18 @@ "has_first_pass_hook": true, "idle_interval_seconds": null, "interval_seconds": 1800, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='tracker_test_daily', module='server.tracker.workers.test_daily', enabled='tracker_test_daily_enabled', interval='tracker_test_daily_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='tracker_test_daily_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=True)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 900.0, "name": "tracker_test_daily", "owned_tables": [ @@ -1309,6 +1774,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": 300, "interval_seconds": 60, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "task_lease_sweep", "owned_tables": [], @@ -1323,6 +1789,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "oauth_signin_state_sweep", "owned_tables": [], @@ -1337,6 +1804,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 60, + "live_max_pass_seconds": null, "max_pass_seconds": 240.0, "name": "mcp_session_run_sweep", "owned_tables": [], @@ -1351,6 +1819,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": 30, "interval_seconds": 5, + "live_max_pass_seconds": null, "max_pass_seconds": 120.0, "name": "task_webhook_deliver", "owned_tables": [], @@ -1365,6 +1834,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": 30, "interval_seconds": 5, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='memory_webhook_deliver', module='server.memory.workers.webhook_deliver', enabled='memory_webhook_deliver_enabled', interval='memory_webhook_deliver_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval='memory_webhook_deliver_idle_interval_seconds', max_pass_setting='memory_webhook_deliver_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 120.0, "name": "memory_webhook_deliver", "owned_tables": [], @@ -1381,6 +1862,18 @@ "has_first_pass_hook": true, "idle_interval_seconds": null, "interval_seconds": 86400.0, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='tracker_links', module='server.tracker.workers.links', enabled='tracker_links_enabled', interval='tracker_links_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='tracker_links_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=True)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 3600.0, "name": "tracker_links", "owned_tables": [ @@ -1399,6 +1892,18 @@ "has_first_pass_hook": true, "idle_interval_seconds": null, "interval_seconds": 1800.0, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='tracker_embed', module='server.tracker.workers.embed', enabled='tracker_embed_enabled', interval='tracker_embed_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='tracker_embed_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=True)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 900.0, "name": "tracker_embed", "owned_tables": [ @@ -1415,6 +1920,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": 120, "interval_seconds": 60, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "code_coverage_notify", "owned_tables": [], @@ -1431,6 +1937,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": 30, "interval_seconds": 5, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "embedding_worker", "owned_tables": [], @@ -1445,6 +1952,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 3600, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "audit_verifier", "owned_tables": [], @@ -1461,6 +1969,7 @@ "has_first_pass_hook": true, "idle_interval_seconds": null, "interval_seconds": 300, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "adoption_telemetry", "owned_tables": [], @@ -1475,6 +1984,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 604800, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "recalibration", "owned_tables": [], @@ -1489,6 +1999,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 60, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "erasure_recovery", "owned_tables": [], @@ -1503,6 +2014,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 3600, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "erasure_reclaim", "owned_tables": [], @@ -1517,6 +2029,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "retention_reconcile", "owned_tables": [], @@ -1531,6 +2044,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 3600, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "document_blob_gc", "owned_tables": [], @@ -1545,6 +2059,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": 15, "interval_seconds": 0, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='knowledge_ingest', module='server.knowledge.workers.ingest', enabled='knowledge_ingest_enabled', interval='knowledge_ingest_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval='knowledge_ingest_idle_interval_seconds', max_pass_setting='knowledge_ingest_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 900.0, "name": "knowledge_ingest", "owned_tables": [], @@ -1559,6 +2085,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 3600, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "namespace_gc", "owned_tables": [], @@ -1573,6 +2100,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "projection_repair", "owned_tables": [], @@ -1587,6 +2115,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": 10, "interval_seconds": 2, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "pg_delivery", "owned_tables": [], @@ -1601,6 +2130,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": 10, "interval_seconds": 2, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "knowledge_pg_delivery", "owned_tables": [], @@ -1615,6 +2145,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "usage_fold", "owned_tables": [], @@ -1629,6 +2160,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 3600.0, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "keeper_sweep", "owned_tables": [], @@ -1643,6 +2175,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 10.0, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='conflict_resolver', module='server.memory.workers.conflict_resolver', enabled='memory_conflict_resolver_enabled', interval='memory_conflict_resolver_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='memory_conflict_resolver_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 600.0, "name": "conflict_resolver", "owned_tables": [], @@ -1657,6 +2201,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 600, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "orphan_vector_reconcile", "owned_tables": [], @@ -1671,6 +2216,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 86400, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "sensitivity_sweep", "owned_tables": [], @@ -1685,6 +2231,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 1800, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "conversation_titler", "owned_tables": [], @@ -1699,6 +2246,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": 600, "interval_seconds": 120, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='structured_profile', module='server.memory.workers.structured_profile', enabled='structured_profile_enabled', interval='structured_profile_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval='structured_profile_idle_interval_seconds', max_pass_setting='structured_profile_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 600.0, "name": "structured_profile", "owned_tables": [], @@ -1713,6 +2272,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 3600, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "reflection_distill", "owned_tables": [], @@ -1727,6 +2287,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": 300, "interval_seconds": 60, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "entity_extractor", "owned_tables": [], @@ -1741,6 +2302,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 60, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='memory_code_links', module='server.memory.workers.code_links', enabled='memory_code_links_enabled', interval='memory_code_links_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='memory_code_links_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 600.0, "name": "memory_code_links", "owned_tables": [], @@ -1755,6 +2328,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "memory_expiry_sweep", "owned_tables": [], @@ -1769,6 +2343,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": 300, "interval_seconds": 60, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "delete_version_check", "owned_tables": [], @@ -1783,6 +2358,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='observe_extract', module='server.memory.workers.observe_extract', enabled='observe_extract_enabled', interval='observe_extract_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='observe_extract_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 900.0, "name": "observe_extract", "owned_tables": [], @@ -1797,6 +2384,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 15, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='extraction_queue', module='server.memory.workers.extraction_queue', enabled='extraction_queue_enabled', interval='extraction_queue_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='extraction_queue_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 0.0, "name": "extraction_queue", "owned_tables": [], @@ -1811,6 +2410,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 120, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='code_ingest', module='server.code.workers.ingest', enabled='code_ingest_enabled', interval='code_ingest_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='code_ingest_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 900.0, "name": "code_ingest", "owned_tables": [], @@ -1825,6 +2436,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 60, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "code_scip_apply", "owned_tables": [], @@ -1839,6 +2451,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='code_scip_delta', module='server.code.workers.scip_delta', enabled='code_scip_delta_enabled', interval='code_scip_delta_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='code_scip_delta_timeout_seconds', max_pass_headroom=1800.0, max_pass_fetch_budgets=6, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 27000.0, "name": "code_scip_delta", "owned_tables": [], @@ -1853,6 +2477,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 600, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='code_scip_ts_delta', module='server.code.workers.scip_ts_delta', enabled='code_scip_ts_delta_enabled', interval='code_scip_ts_delta_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='code_scip_ts_delta_timeout_seconds', max_pass_headroom=1800.0, max_pass_fetch_budgets=2, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 12600.0, "name": "code_scip_ts_delta", "owned_tables": [], @@ -1867,6 +2503,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 600, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='code_scip_py_delta', module='server.code.workers.scip_py_delta', enabled='code_scip_py_delta_enabled', interval='code_scip_py_delta_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='code_scip_py_delta_timeout_seconds', max_pass_headroom=1800.0, max_pass_fetch_budgets=2, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 12600.0, "name": "code_scip_py_delta", "owned_tables": [], @@ -1881,6 +2529,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 900, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='code_scip_go_delta', module='server.code.workers.scip_go_delta', enabled='code_scip_go_delta_enabled', interval='code_scip_go_delta_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='code_scip_go_delta_timeout_seconds', max_pass_headroom=1800.0, max_pass_fetch_budgets=2, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 16200.0, "name": "code_scip_go_delta", "owned_tables": [], @@ -1895,6 +2555,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 900, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='code_scip_full', module='server.code.workers.scip_full', enabled='code_scip_full_enabled', interval='code_scip_full_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='code_scip_full_timeout_seconds', max_pass_headroom=21600.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 50400.0, "name": "code_scip_full", "owned_tables": [], @@ -1909,6 +2581,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 1800, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "code_crossref", "owned_tables": [], @@ -1923,6 +2596,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 900, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "code_pr_history", "owned_tables": [], @@ -1937,6 +2611,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": 1800, "interval_seconds": 900, + "live_max_pass_seconds": null, "max_pass_seconds": 60.0, "name": "knowledge_source_retire", "owned_tables": [], @@ -1951,6 +2626,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": 120, "interval_seconds": 30, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "code_embed_recovery", "owned_tables": [], @@ -1965,6 +2641,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 21600, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "entity_communities", "owned_tables": [], @@ -1981,6 +2658,18 @@ "has_first_pass_hook": true, "idle_interval_seconds": null, "interval_seconds": 604800, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='code_graph_stats', module='server.code.workers.graph_stats', enabled='code_graph_stats_enabled', interval='code_graph_stats_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='code_graph_stats_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due='first_pass_due', owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 3600.0, "name": "code_graph_stats", "owned_tables": [], @@ -1997,6 +2686,18 @@ "has_first_pass_hook": true, "idle_interval_seconds": null, "interval_seconds": 1800, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='tracker_test_daily', module='server.tracker.workers.test_daily', enabled='tracker_test_daily_enabled', interval='tracker_test_daily_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='tracker_test_daily_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=True)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 900.0, "name": "tracker_test_daily", "owned_tables": [ @@ -2014,6 +2715,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": 300, "interval_seconds": 60, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "task_lease_sweep", "owned_tables": [], @@ -2028,6 +2730,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "oauth_signin_state_sweep", "owned_tables": [], @@ -2042,6 +2745,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 60, + "live_max_pass_seconds": null, "max_pass_seconds": 240.0, "name": "mcp_session_run_sweep", "owned_tables": [], @@ -2056,6 +2760,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": 30, "interval_seconds": 5, + "live_max_pass_seconds": null, "max_pass_seconds": 120.0, "name": "task_webhook_deliver", "owned_tables": [], @@ -2070,6 +2775,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": 30, "interval_seconds": 5, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='memory_webhook_deliver', module='server.memory.workers.webhook_deliver', enabled='memory_webhook_deliver_enabled', interval='memory_webhook_deliver_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval='memory_webhook_deliver_idle_interval_seconds', max_pass_setting='memory_webhook_deliver_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 120.0, "name": "memory_webhook_deliver", "owned_tables": [], @@ -2086,6 +2803,18 @@ "has_first_pass_hook": true, "idle_interval_seconds": null, "interval_seconds": 86400.0, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='tracker_links', module='server.tracker.workers.links', enabled='tracker_links_enabled', interval='tracker_links_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='tracker_links_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=True)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 3600.0, "name": "tracker_links", "owned_tables": [ @@ -2104,6 +2833,18 @@ "has_first_pass_hook": true, "idle_interval_seconds": null, "interval_seconds": 1800.0, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='tracker_embed', module='server.tracker.workers.embed', enabled='tracker_embed_enabled', interval='tracker_embed_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='tracker_embed_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=True)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 900.0, "name": "tracker_embed", "owned_tables": [ @@ -2120,6 +2861,18 @@ "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 86400.0, + "live_max_pass_seconds": { + "cells": [ + "_Worker(name='code_backport_gaps', module='server.code.workers.backport_gaps', enabled='code_backport_gaps_enabled', interval='code_backport_gaps_interval_seconds', pass_attr='run_pass', also_requires='code_pr_history_enabled', idle_interval=None, max_pass_setting='code_backport_gaps_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" + ], + "freevars": [ + "row" + ], + "id": "server.workers.registry:live", + "names": [ + "_setting_deadline" + ] + }, "max_pass_seconds": 3600.0, "name": "code_backport_gaps", "owned_tables": [], @@ -2134,6 +2887,7 @@ "has_first_pass_hook": false, "idle_interval_seconds": 120, "interval_seconds": 60, + "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "code_coverage_notify", "owned_tables": [], diff --git a/tests/unit/test_worker_pass_deadline.py b/tests/unit/test_worker_pass_deadline.py index caf5b50d737..64177ec086e 100644 --- a/tests/unit/test_worker_pass_deadline.py +++ b/tests/unit/test_worker_pass_deadline.py @@ -70,6 +70,58 @@ def test_registry_pins_the_two_long_pass_workers_at_900(monkeypatch: pytest.Monk assert Settings.model_fields["code_ingest_max_pass_seconds"].default == 900 +def test_a_runtime_settings_update_moves_a_started_specs_deadline( + monkeypatch: pytest.MonkeyPatch, +) -> None: + from server.settings import settings + from server.workers import registry + + monkeypatch.setattr(settings, "code_scip_ts_delta_enabled", True) + spec = {w.name: w for w in registry.enabled_workers()}["code_scip_ts_delta"] + before = spec.deadline_seconds() + # The setting the checkout steps read on every fetch (two budgets here). + monkeypatch.setattr( + settings, "code_git_fetch_timeout_s", settings.code_git_fetch_timeout_s + 1000 + ) + assert spec.deadline_seconds() == before + 2000.0 + # The harness timeout the same sum carries. + monkeypatch.setattr( + settings, + "code_scip_ts_delta_timeout_seconds", + settings.code_scip_ts_delta_timeout_seconds + 500, + ) + assert spec.deadline_seconds() == before + 2500.0 + + +async def test_the_next_pass_runs_under_the_deadline_read_at_its_admission( + emitter: _Emitter, +) -> None: + calls = {"n": 0} + live = {"seconds": 0.05} + + async def _pass() -> None: + calls["n"] += 1 + if calls["n"] == 1: + live["seconds"] = 5.0 # a runtime update after the supervisor started + await asyncio.sleep(0.2) + + s = _supervisor(2, calls) + spec = WorkerSpec( + "live_deadline", + 1.0, + _pass, + max_pass_seconds=0.05, + live_max_pass_seconds=lambda: live["seconds"], + ) + genai.set_identity() + await asyncio.wait_for(s._supervise(spec), timeout=5) + assert calls["n"] == 2 + # The first pass ran under 0.05 s and timed out; the second, admitted + # after the update, finished within the raised deadline. + assert [e.success for e in emitter.events] == [False] + genai.set_identity() + + async def test_a_pass_past_its_deadline_is_a_counted_failure(emitter: _Emitter) -> None: calls = {"n": 0} diff --git a/tests/unit/test_worker_registry_snapshot.py b/tests/unit/test_worker_registry_snapshot.py index ebfd12e857f..ebbb27de465 100644 --- a/tests/unit/test_worker_registry_snapshot.py +++ b/tests/unit/test_worker_registry_snapshot.py @@ -96,7 +96,12 @@ def _snapshot_specs() -> list[dict[str, Any]]: row: dict[str, Any] = {} for field in dataclasses.fields(spec): value = getattr(spec, field.name) - if field.name in ("pass_callable", "first_pass_due", "due_scope"): + if field.name in ( + "pass_callable", + "first_pass_due", + "due_scope", + "live_max_pass_seconds", + ): row[field.name] = None if value is None else _fingerprint(value) elif field.name == "owned_tables": row[field.name] = [repr(t) for t in value] From b44fed0d08fd47bcd0a8a6d328538cc46bc1f984 Mon Sep 17 00:00:00 2001 From: Kaloyan Naumov Date: Wed, 2 Dec 2026 12:08:53 +0000 Subject: [PATCH 06/13] A pass deadline reads only the fetch timeout at admission The deadline sums a harness timeout, a headroom and some fetch budgets. Only code_git_fetch_timeout_s is a LIVE setting; the harness timeouts and headrooms are read from the environment at start. A per-worker function that re-sums the deadline can therefore return only a build-time constant for all but the four compiler tiers. WorkerSpec carries git_fetch_budgets, the number of fetch budgets the pass adds, and deadline_seconds() adds them at the current code_git_fetch_timeout_s to max_pass_seconds. The supervisor reads the deadline when a pass is admitted. The worker snapshot gains the field; max_pass_seconds holds the static part and deadline_seconds() is unchanged on every row. Co-Authored-By: Claude Sonnet 5.5 Signed-off-by: Kaloyan Naumov --- server/workers/registry.py | 37 +- tests/unit/snapshots/worker_registry.json | 927 ++++---------------- tests/unit/test_worker_pass_deadline.py | 20 +- tests/unit/test_worker_registry_rows.py | 2 +- tests/unit/test_worker_registry_snapshot.py | 7 +- 5 files changed, 181 insertions(+), 812 deletions(-) diff --git a/server/workers/registry.py b/server/workers/registry.py index fb0aabc5b81..452ee59806e 100644 --- a/server/workers/registry.py +++ b/server/workers/registry.py @@ -41,10 +41,11 @@ class WorkerSpec: # may wait on a provider retry loop), at most DEADLINE_CAP_SECONDS. A # pass past its deadline is cancelled and counted as a failure. max_pass_seconds: float | None = None - # The deadline read from the live settings, asked when a pass is admitted. - # Set, it wins over `max_pass_seconds` (the value the specs were built - # with): a runtime update of a setting the deadline sums reaches the next pass. - live_max_pass_seconds: Callable[[], float] | None = None + # How many `code_git_fetch_timeout_s` budgets the pass adds on top of + # `max_pass_seconds`. That is the one setting of the sum a runtime update + # can change (the others are read from the environment at start), so + # `deadline_seconds()` reads it when asked, not when the specs are built. + git_fetch_budgets: int = 0 # Asked once, when the supervisor starts this worker (the # lease is held). True → the first pass runs now instead of after the # boot stagger — a weekly worker whose output table is empty or older @@ -68,10 +69,10 @@ class WorkerSpec: def deadline_seconds(self) -> float: seconds = self.max_pass_seconds - if self.live_max_pass_seconds is not None: - seconds = self.live_max_pass_seconds() if seconds is not None and seconds > 0: - return float(seconds) + return float(seconds) + self.git_fetch_budgets * float( + settings.code_git_fetch_timeout_s + ) return default_max_pass_seconds(self.interval_seconds) def first_pass_hook(self) -> Callable[[], Awaitable[bool]] | None: @@ -138,40 +139,22 @@ def cadence_seconds(self) -> int | float: return cast(int | float, getattr(settings, self.interval)) -def _setting_deadline(row: _Worker) -> float: - """A row's pass deadline from the settings as they are now: its own - setting, the headroom, and the fetch budgets at `code_git_fetch_timeout_s`.""" - assert row.max_pass_setting is not None - total = float(getattr(settings, row.max_pass_setting)) + row.max_pass_headroom - return total + row.max_pass_fetch_budgets * float(settings.code_git_fetch_timeout_s) - - -def _live_deadline(row: _Worker) -> Callable[[], float]: - def live() -> float: - return _setting_deadline(row) - - return live - - def _spec_for(row: _Worker) -> WorkerSpec: """Import an enabled worker and build its spec — the `WorkerSpec(...)` each row would otherwise spell out, field for field.""" mod = importlib.import_module(row.module) pass_callable = getattr(mod, row.pass_attr) max_pass = None - live_max_pass = None if row.max_pass_setting is not None: - max_pass = _setting_deadline(row) - live_max_pass = _live_deadline(row) + max_pass = float(getattr(settings, row.max_pass_setting)) + row.max_pass_headroom if row.max_pass_attr is not None: max_pass = float(getattr(mod, row.max_pass_attr)) - live_max_pass = None return WorkerSpec( row.name, row.cadence_seconds(), pass_callable, max_pass_seconds=max_pass, - live_max_pass_seconds=live_max_pass, + git_fetch_budgets=row.max_pass_fetch_budgets if row.max_pass_attr is None else 0, first_pass_due=getattr(mod, row.first_pass_due) if row.first_pass_due else None, owned_tables=mod.OWNED_TABLES if row.owned_tables else (), due_scope=mod.due_scope if row.owned_tables else None, diff --git a/tests/unit/snapshots/worker_registry.json b/tests/unit/snapshots/worker_registry.json index 17abe7a729b..c3638e52aef 100644 --- a/tests/unit/snapshots/worker_registry.json +++ b/tests/unit/snapshots/worker_registry.json @@ -4,10 +4,10 @@ "deadline_seconds()": 60.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": 30, "interval_seconds": 5, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "embedding_worker", "owned_tables": [], @@ -19,10 +19,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 3600, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "audit_verifier", "owned_tables": [], @@ -36,10 +36,10 @@ "first_pass_due": { "id": "server.insights.workers.adoption_telemetry:first_pass_due" }, + "git_fetch_budgets": 0, "has_first_pass_hook": true, "idle_interval_seconds": null, "interval_seconds": 300, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "adoption_telemetry", "owned_tables": [], @@ -51,10 +51,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 604800, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "recalibration", "owned_tables": [], @@ -66,10 +66,10 @@ "deadline_seconds()": 240.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 60, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "erasure_recovery", "owned_tables": [], @@ -81,10 +81,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 3600, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "erasure_reclaim", "owned_tables": [], @@ -96,10 +96,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "retention_reconcile", "owned_tables": [], @@ -111,10 +111,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 3600, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "document_blob_gc", "owned_tables": [], @@ -126,21 +126,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": 15, "interval_seconds": 0, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='knowledge_ingest', module='server.knowledge.workers.ingest', enabled='knowledge_ingest_enabled', interval='knowledge_ingest_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval='knowledge_ingest_idle_interval_seconds', max_pass_setting='knowledge_ingest_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 900.0, "name": "knowledge_ingest", "owned_tables": [], @@ -152,10 +141,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 3600, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "namespace_gc", "owned_tables": [], @@ -167,10 +156,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "projection_repair", "owned_tables": [], @@ -182,10 +171,10 @@ "deadline_seconds()": 60.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": 10, "interval_seconds": 2, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "pg_delivery", "owned_tables": [], @@ -197,10 +186,10 @@ "deadline_seconds()": 60.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": 10, "interval_seconds": 2, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "knowledge_pg_delivery", "owned_tables": [], @@ -212,10 +201,10 @@ "deadline_seconds()": 240.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 60, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "pg_payload_clear", "owned_tables": [], @@ -227,10 +216,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "usage_fold", "owned_tables": [], @@ -242,10 +231,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 3600.0, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "keeper_sweep", "owned_tables": [], @@ -257,21 +246,10 @@ "deadline_seconds()": 600.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 10.0, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='conflict_resolver', module='server.memory.workers.conflict_resolver', enabled='memory_conflict_resolver_enabled', interval='memory_conflict_resolver_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='memory_conflict_resolver_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 600.0, "name": "conflict_resolver", "owned_tables": [], @@ -283,10 +261,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 600, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "orphan_vector_reconcile", "owned_tables": [], @@ -298,10 +276,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 86400, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "sensitivity_sweep", "owned_tables": [], @@ -313,10 +291,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 1800, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "conversation_titler", "owned_tables": [], @@ -328,21 +306,10 @@ "deadline_seconds()": 120.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 3600, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='query_history', module='server.knowledge.workers.query_history', enabled='knowledge_query_history_enabled', interval='knowledge_query_history_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='knowledge_query_history_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 120.0, "name": "query_history", "owned_tables": [], @@ -356,21 +323,10 @@ "first_pass_due": { "id": "server.knowledge.workers.knowledge_gaps:first_pass_due" }, + "git_fetch_budgets": 0, "has_first_pass_hook": true, "idle_interval_seconds": null, "interval_seconds": 86400, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='knowledge_gaps', module='server.knowledge.workers.knowledge_gaps', enabled='knowledge_gaps_enabled', interval='knowledge_gaps_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='knowledge_gaps_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due='first_pass_due', owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 3600.0, "name": "knowledge_gaps", "owned_tables": [], @@ -382,10 +338,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 21600, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "profile_consolidation", "owned_tables": [], @@ -397,21 +353,10 @@ "deadline_seconds()": 600.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": 600, "interval_seconds": 120, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='structured_profile', module='server.memory.workers.structured_profile', enabled='structured_profile_enabled', interval='structured_profile_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval='structured_profile_idle_interval_seconds', max_pass_setting='structured_profile_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 600.0, "name": "structured_profile", "owned_tables": [], @@ -423,10 +368,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 3600, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "reflection_distill", "owned_tables": [], @@ -438,10 +383,10 @@ "deadline_seconds()": 240.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": 300, "interval_seconds": 60, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "entity_extractor", "owned_tables": [], @@ -453,21 +398,10 @@ "deadline_seconds()": 600.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 60, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='memory_code_links', module='server.memory.workers.code_links', enabled='memory_code_links_enabled', interval='memory_code_links_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='memory_code_links_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 600.0, "name": "memory_code_links", "owned_tables": [], @@ -479,10 +413,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "memory_expiry_sweep", "owned_tables": [], @@ -494,10 +428,10 @@ "deadline_seconds()": 240.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": 300, "interval_seconds": 60, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "delete_version_check", "owned_tables": [], @@ -509,21 +443,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='observe_extract', module='server.memory.workers.observe_extract', enabled='observe_extract_enabled', interval='observe_extract_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='observe_extract_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 900.0, "name": "observe_extract", "owned_tables": [], @@ -535,21 +458,10 @@ "deadline_seconds()": 60.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 15, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='extraction_queue', module='server.memory.workers.extraction_queue', enabled='extraction_queue_enabled', interval='extraction_queue_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='extraction_queue_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 0.0, "name": "extraction_queue", "owned_tables": [], @@ -561,21 +473,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 120, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='code_ingest', module='server.code.workers.ingest', enabled='code_ingest_enabled', interval='code_ingest_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='code_ingest_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 900.0, "name": "code_ingest", "owned_tables": [], @@ -587,10 +488,10 @@ "deadline_seconds()": 240.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 60, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "code_scip_apply", "owned_tables": [], @@ -602,22 +503,11 @@ "deadline_seconds()": 27000.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 6, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='code_scip_delta', module='server.code.workers.scip_delta', enabled='code_scip_delta_enabled', interval='code_scip_delta_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='code_scip_delta_timeout_seconds', max_pass_headroom=1800.0, max_pass_fetch_budgets=6, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, - "max_pass_seconds": 27000.0, + "max_pass_seconds": 5400.0, "name": "code_scip_delta", "owned_tables": [], "pass_callable": { @@ -628,22 +518,11 @@ "deadline_seconds()": 12600.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 2, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 600, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='code_scip_ts_delta', module='server.code.workers.scip_ts_delta', enabled='code_scip_ts_delta_enabled', interval='code_scip_ts_delta_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='code_scip_ts_delta_timeout_seconds', max_pass_headroom=1800.0, max_pass_fetch_budgets=2, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, - "max_pass_seconds": 12600.0, + "max_pass_seconds": 5400.0, "name": "code_scip_ts_delta", "owned_tables": [], "pass_callable": { @@ -654,22 +533,11 @@ "deadline_seconds()": 12600.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 2, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 600, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='code_scip_py_delta', module='server.code.workers.scip_py_delta', enabled='code_scip_py_delta_enabled', interval='code_scip_py_delta_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='code_scip_py_delta_timeout_seconds', max_pass_headroom=1800.0, max_pass_fetch_budgets=2, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, - "max_pass_seconds": 12600.0, + "max_pass_seconds": 5400.0, "name": "code_scip_py_delta", "owned_tables": [], "pass_callable": { @@ -680,22 +548,11 @@ "deadline_seconds()": 16200.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 2, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 900, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='code_scip_go_delta', module='server.code.workers.scip_go_delta', enabled='code_scip_go_delta_enabled', interval='code_scip_go_delta_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='code_scip_go_delta_timeout_seconds', max_pass_headroom=1800.0, max_pass_fetch_budgets=2, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, - "max_pass_seconds": 16200.0, + "max_pass_seconds": 9000.0, "name": "code_scip_go_delta", "owned_tables": [], "pass_callable": { @@ -706,21 +563,10 @@ "deadline_seconds()": 50400.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 900, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='code_scip_full', module='server.code.workers.scip_full', enabled='code_scip_full_enabled', interval='code_scip_full_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='code_scip_full_timeout_seconds', max_pass_headroom=21600.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 50400.0, "name": "code_scip_full", "owned_tables": [], @@ -732,10 +578,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 1800, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "code_crossref", "owned_tables": [], @@ -747,10 +593,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 900, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "code_pr_history", "owned_tables": [], @@ -762,21 +608,10 @@ "deadline_seconds()": 600.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": 1800, "interval_seconds": 900, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='knowledge_source_sync', module='server.knowledge.workers.source_sync', enabled='knowledge_source_sync_enabled', interval='knowledge_source_sync_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval='knowledge_source_sync_idle_interval_seconds', max_pass_setting='knowledge_source_sync_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 600.0, "name": "knowledge_source_sync", "owned_tables": [], @@ -788,10 +623,10 @@ "deadline_seconds()": 60.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": 1800, "interval_seconds": 900, - "live_max_pass_seconds": null, "max_pass_seconds": 60.0, "name": "knowledge_source_retire", "owned_tables": [], @@ -803,21 +638,10 @@ "deadline_seconds()": 120.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='knowledge_source_push', module='server.knowledge.workers.source_push', enabled='knowledge_source_push_enabled', interval='knowledge_source_push_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='knowledge_source_push_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 120.0, "name": "knowledge_source_push", "owned_tables": [], @@ -829,10 +653,10 @@ "deadline_seconds()": 120.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": 120, "interval_seconds": 30, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "code_embed_recovery", "owned_tables": [], @@ -844,10 +668,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 21600, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "entity_communities", "owned_tables": [], @@ -861,21 +685,10 @@ "first_pass_due": { "id": "server.code.workers.graph_stats:first_pass_due" }, + "git_fetch_budgets": 0, "has_first_pass_hook": true, "idle_interval_seconds": null, "interval_seconds": 604800, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='code_graph_stats', module='server.code.workers.graph_stats', enabled='code_graph_stats_enabled', interval='code_graph_stats_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='code_graph_stats_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due='first_pass_due', owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 3600.0, "name": "code_graph_stats", "owned_tables": [], @@ -889,21 +702,10 @@ "id": "server.tracker.workers.test_daily:due_scope" }, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": true, "idle_interval_seconds": null, "interval_seconds": 1800, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='tracker_test_daily', module='server.tracker.workers.test_daily', enabled='tracker_test_daily_enabled', interval='tracker_test_daily_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='tracker_test_daily_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=True)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 900.0, "name": "tracker_test_daily", "owned_tables": [ @@ -918,10 +720,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 604800, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "code_summary", "owned_tables": [], @@ -933,10 +735,10 @@ "deadline_seconds()": 240.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": 300, "interval_seconds": 60, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "task_lease_sweep", "owned_tables": [], @@ -948,10 +750,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "oauth_signin_state_sweep", "owned_tables": [], @@ -963,10 +765,10 @@ "deadline_seconds()": 240.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 60, - "live_max_pass_seconds": null, "max_pass_seconds": 240.0, "name": "mcp_session_run_sweep", "owned_tables": [], @@ -978,10 +780,10 @@ "deadline_seconds()": 120.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": 30, "interval_seconds": 5, - "live_max_pass_seconds": null, "max_pass_seconds": 120.0, "name": "task_webhook_deliver", "owned_tables": [], @@ -993,21 +795,10 @@ "deadline_seconds()": 120.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": 30, "interval_seconds": 5, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='memory_webhook_deliver', module='server.memory.workers.webhook_deliver', enabled='memory_webhook_deliver_enabled', interval='memory_webhook_deliver_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval='memory_webhook_deliver_idle_interval_seconds', max_pass_setting='memory_webhook_deliver_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 120.0, "name": "memory_webhook_deliver", "owned_tables": [], @@ -1021,21 +812,10 @@ "id": "server.tracker.workers.links:due_scope" }, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": true, "idle_interval_seconds": null, "interval_seconds": 86400.0, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='tracker_links', module='server.tracker.workers.links', enabled='tracker_links_enabled', interval='tracker_links_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='tracker_links_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=True)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 3600.0, "name": "tracker_links", "owned_tables": [ @@ -1051,21 +831,10 @@ "id": "server.tracker.workers.embed:due_scope" }, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": true, "idle_interval_seconds": null, "interval_seconds": 1800.0, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='tracker_embed', module='server.tracker.workers.embed', enabled='tracker_embed_enabled', interval='tracker_embed_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='tracker_embed_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=True)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 900.0, "name": "tracker_embed", "owned_tables": [ @@ -1079,21 +848,10 @@ "deadline_seconds()": 3600.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 86400.0, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='code_backport_gaps', module='server.code.workers.backport_gaps', enabled='code_backport_gaps_enabled', interval='code_backport_gaps_interval_seconds', pass_attr='run_pass', also_requires='code_pr_history_enabled', idle_interval=None, max_pass_setting='code_backport_gaps_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 3600.0, "name": "code_backport_gaps", "owned_tables": [], @@ -1105,10 +863,10 @@ "deadline_seconds()": 240.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": 120, "interval_seconds": 60, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "code_coverage_notify", "owned_tables": [], @@ -1120,21 +878,10 @@ "deadline_seconds()": 7200.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 86400.0, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='code_coverage_import', module='server.code.workers.coverage_import', enabled='code_coverage_import_enabled', interval='code_coverage_import_interval_seconds', pass_attr='run_pass', also_requires='code_intel_enabled', idle_interval=None, max_pass_setting='code_coverage_import_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 7200.0, "name": "code_coverage_import", "owned_tables": [], @@ -1148,10 +895,10 @@ "deadline_seconds()": 60.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": 30, "interval_seconds": 5, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "embedding_worker", "owned_tables": [], @@ -1163,10 +910,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 3600, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "audit_verifier", "owned_tables": [], @@ -1180,10 +927,10 @@ "first_pass_due": { "id": "server.insights.workers.adoption_telemetry:first_pass_due" }, + "git_fetch_budgets": 0, "has_first_pass_hook": true, "idle_interval_seconds": null, "interval_seconds": 300, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "adoption_telemetry", "owned_tables": [], @@ -1195,10 +942,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 604800, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "recalibration", "owned_tables": [], @@ -1210,10 +957,10 @@ "deadline_seconds()": 240.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 60, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "erasure_recovery", "owned_tables": [], @@ -1225,10 +972,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 3600, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "erasure_reclaim", "owned_tables": [], @@ -1240,10 +987,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "retention_reconcile", "owned_tables": [], @@ -1255,10 +1002,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 3600, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "document_blob_gc", "owned_tables": [], @@ -1270,21 +1017,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": 15, "interval_seconds": 0, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='knowledge_ingest', module='server.knowledge.workers.ingest', enabled='knowledge_ingest_enabled', interval='knowledge_ingest_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval='knowledge_ingest_idle_interval_seconds', max_pass_setting='knowledge_ingest_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 900.0, "name": "knowledge_ingest", "owned_tables": [], @@ -1296,10 +1032,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 3600, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "namespace_gc", "owned_tables": [], @@ -1311,10 +1047,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "projection_repair", "owned_tables": [], @@ -1326,10 +1062,10 @@ "deadline_seconds()": 60.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": 10, "interval_seconds": 2, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "pg_delivery", "owned_tables": [], @@ -1341,10 +1077,10 @@ "deadline_seconds()": 60.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": 10, "interval_seconds": 2, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "knowledge_pg_delivery", "owned_tables": [], @@ -1356,10 +1092,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "usage_fold", "owned_tables": [], @@ -1371,10 +1107,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 3600.0, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "keeper_sweep", "owned_tables": [], @@ -1386,10 +1122,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 600, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "orphan_vector_reconcile", "owned_tables": [], @@ -1401,10 +1137,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 86400, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "sensitivity_sweep", "owned_tables": [], @@ -1416,10 +1152,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 1800, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "conversation_titler", "owned_tables": [], @@ -1431,21 +1167,10 @@ "deadline_seconds()": 600.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": 600, "interval_seconds": 120, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='structured_profile', module='server.memory.workers.structured_profile', enabled='structured_profile_enabled', interval='structured_profile_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval='structured_profile_idle_interval_seconds', max_pass_setting='structured_profile_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 600.0, "name": "structured_profile", "owned_tables": [], @@ -1457,10 +1182,10 @@ "deadline_seconds()": 240.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": 300, "interval_seconds": 60, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "entity_extractor", "owned_tables": [], @@ -1472,21 +1197,10 @@ "deadline_seconds()": 600.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 60, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='memory_code_links', module='server.memory.workers.code_links', enabled='memory_code_links_enabled', interval='memory_code_links_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='memory_code_links_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 600.0, "name": "memory_code_links", "owned_tables": [], @@ -1498,10 +1212,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "memory_expiry_sweep", "owned_tables": [], @@ -1513,10 +1227,10 @@ "deadline_seconds()": 240.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": 300, "interval_seconds": 60, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "delete_version_check", "owned_tables": [], @@ -1528,21 +1242,10 @@ "deadline_seconds()": 60.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 15, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='extraction_queue', module='server.memory.workers.extraction_queue', enabled='extraction_queue_enabled', interval='extraction_queue_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='extraction_queue_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 0.0, "name": "extraction_queue", "owned_tables": [], @@ -1554,21 +1257,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 120, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='code_ingest', module='server.code.workers.ingest', enabled='code_ingest_enabled', interval='code_ingest_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='code_ingest_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 900.0, "name": "code_ingest", "owned_tables": [], @@ -1580,22 +1272,11 @@ "deadline_seconds()": 27000.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 6, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='code_scip_delta', module='server.code.workers.scip_delta', enabled='code_scip_delta_enabled', interval='code_scip_delta_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='code_scip_delta_timeout_seconds', max_pass_headroom=1800.0, max_pass_fetch_budgets=6, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, - "max_pass_seconds": 27000.0, + "max_pass_seconds": 5400.0, "name": "code_scip_delta", "owned_tables": [], "pass_callable": { @@ -1606,22 +1287,11 @@ "deadline_seconds()": 12600.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 2, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 600, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='code_scip_ts_delta', module='server.code.workers.scip_ts_delta', enabled='code_scip_ts_delta_enabled', interval='code_scip_ts_delta_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='code_scip_ts_delta_timeout_seconds', max_pass_headroom=1800.0, max_pass_fetch_budgets=2, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, - "max_pass_seconds": 12600.0, + "max_pass_seconds": 5400.0, "name": "code_scip_ts_delta", "owned_tables": [], "pass_callable": { @@ -1632,22 +1302,11 @@ "deadline_seconds()": 12600.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 2, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 600, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='code_scip_py_delta', module='server.code.workers.scip_py_delta', enabled='code_scip_py_delta_enabled', interval='code_scip_py_delta_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='code_scip_py_delta_timeout_seconds', max_pass_headroom=1800.0, max_pass_fetch_budgets=2, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, - "max_pass_seconds": 12600.0, + "max_pass_seconds": 5400.0, "name": "code_scip_py_delta", "owned_tables": [], "pass_callable": { @@ -1658,22 +1317,11 @@ "deadline_seconds()": 16200.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 2, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 900, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='code_scip_go_delta', module='server.code.workers.scip_go_delta', enabled='code_scip_go_delta_enabled', interval='code_scip_go_delta_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='code_scip_go_delta_timeout_seconds', max_pass_headroom=1800.0, max_pass_fetch_budgets=2, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, - "max_pass_seconds": 16200.0, + "max_pass_seconds": 9000.0, "name": "code_scip_go_delta", "owned_tables": [], "pass_callable": { @@ -1684,21 +1332,10 @@ "deadline_seconds()": 50400.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 900, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='code_scip_full', module='server.code.workers.scip_full', enabled='code_scip_full_enabled', interval='code_scip_full_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='code_scip_full_timeout_seconds', max_pass_headroom=21600.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 50400.0, "name": "code_scip_full", "owned_tables": [], @@ -1710,10 +1347,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 1800, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "code_crossref", "owned_tables": [], @@ -1725,10 +1362,10 @@ "deadline_seconds()": 60.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": 1800, "interval_seconds": 900, - "live_max_pass_seconds": null, "max_pass_seconds": 60.0, "name": "knowledge_source_retire", "owned_tables": [], @@ -1742,21 +1379,10 @@ "id": "server.tracker.workers.test_daily:due_scope" }, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": true, "idle_interval_seconds": null, "interval_seconds": 1800, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='tracker_test_daily', module='server.tracker.workers.test_daily', enabled='tracker_test_daily_enabled', interval='tracker_test_daily_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='tracker_test_daily_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=True)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 900.0, "name": "tracker_test_daily", "owned_tables": [ @@ -1771,10 +1397,10 @@ "deadline_seconds()": 240.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": 300, "interval_seconds": 60, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "task_lease_sweep", "owned_tables": [], @@ -1786,10 +1412,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "oauth_signin_state_sweep", "owned_tables": [], @@ -1801,10 +1427,10 @@ "deadline_seconds()": 240.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 60, - "live_max_pass_seconds": null, "max_pass_seconds": 240.0, "name": "mcp_session_run_sweep", "owned_tables": [], @@ -1816,10 +1442,10 @@ "deadline_seconds()": 120.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": 30, "interval_seconds": 5, - "live_max_pass_seconds": null, "max_pass_seconds": 120.0, "name": "task_webhook_deliver", "owned_tables": [], @@ -1831,21 +1457,10 @@ "deadline_seconds()": 120.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": 30, "interval_seconds": 5, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='memory_webhook_deliver', module='server.memory.workers.webhook_deliver', enabled='memory_webhook_deliver_enabled', interval='memory_webhook_deliver_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval='memory_webhook_deliver_idle_interval_seconds', max_pass_setting='memory_webhook_deliver_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 120.0, "name": "memory_webhook_deliver", "owned_tables": [], @@ -1859,21 +1474,10 @@ "id": "server.tracker.workers.links:due_scope" }, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": true, "idle_interval_seconds": null, "interval_seconds": 86400.0, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='tracker_links', module='server.tracker.workers.links', enabled='tracker_links_enabled', interval='tracker_links_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='tracker_links_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=True)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 3600.0, "name": "tracker_links", "owned_tables": [ @@ -1889,21 +1493,10 @@ "id": "server.tracker.workers.embed:due_scope" }, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": true, "idle_interval_seconds": null, "interval_seconds": 1800.0, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='tracker_embed', module='server.tracker.workers.embed', enabled='tracker_embed_enabled', interval='tracker_embed_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='tracker_embed_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=True)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 900.0, "name": "tracker_embed", "owned_tables": [ @@ -1917,10 +1510,10 @@ "deadline_seconds()": 240.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": 120, "interval_seconds": 60, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "code_coverage_notify", "owned_tables": [], @@ -1934,10 +1527,10 @@ "deadline_seconds()": 60.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": 30, "interval_seconds": 5, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "embedding_worker", "owned_tables": [], @@ -1949,10 +1542,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 3600, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "audit_verifier", "owned_tables": [], @@ -1966,10 +1559,10 @@ "first_pass_due": { "id": "server.insights.workers.adoption_telemetry:first_pass_due" }, + "git_fetch_budgets": 0, "has_first_pass_hook": true, "idle_interval_seconds": null, "interval_seconds": 300, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "adoption_telemetry", "owned_tables": [], @@ -1981,10 +1574,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 604800, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "recalibration", "owned_tables": [], @@ -1996,10 +1589,10 @@ "deadline_seconds()": 240.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 60, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "erasure_recovery", "owned_tables": [], @@ -2011,10 +1604,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 3600, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "erasure_reclaim", "owned_tables": [], @@ -2026,10 +1619,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "retention_reconcile", "owned_tables": [], @@ -2041,10 +1634,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 3600, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "document_blob_gc", "owned_tables": [], @@ -2056,21 +1649,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": 15, "interval_seconds": 0, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='knowledge_ingest', module='server.knowledge.workers.ingest', enabled='knowledge_ingest_enabled', interval='knowledge_ingest_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval='knowledge_ingest_idle_interval_seconds', max_pass_setting='knowledge_ingest_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 900.0, "name": "knowledge_ingest", "owned_tables": [], @@ -2082,10 +1664,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 3600, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "namespace_gc", "owned_tables": [], @@ -2097,10 +1679,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "projection_repair", "owned_tables": [], @@ -2112,10 +1694,10 @@ "deadline_seconds()": 60.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": 10, "interval_seconds": 2, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "pg_delivery", "owned_tables": [], @@ -2127,10 +1709,10 @@ "deadline_seconds()": 60.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": 10, "interval_seconds": 2, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "knowledge_pg_delivery", "owned_tables": [], @@ -2142,10 +1724,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "usage_fold", "owned_tables": [], @@ -2157,10 +1739,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 3600.0, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "keeper_sweep", "owned_tables": [], @@ -2172,21 +1754,10 @@ "deadline_seconds()": 600.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 10.0, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='conflict_resolver', module='server.memory.workers.conflict_resolver', enabled='memory_conflict_resolver_enabled', interval='memory_conflict_resolver_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='memory_conflict_resolver_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 600.0, "name": "conflict_resolver", "owned_tables": [], @@ -2198,10 +1769,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 600, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "orphan_vector_reconcile", "owned_tables": [], @@ -2213,10 +1784,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 86400, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "sensitivity_sweep", "owned_tables": [], @@ -2228,10 +1799,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 1800, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "conversation_titler", "owned_tables": [], @@ -2243,21 +1814,10 @@ "deadline_seconds()": 600.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": 600, "interval_seconds": 120, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='structured_profile', module='server.memory.workers.structured_profile', enabled='structured_profile_enabled', interval='structured_profile_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval='structured_profile_idle_interval_seconds', max_pass_setting='structured_profile_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 600.0, "name": "structured_profile", "owned_tables": [], @@ -2269,10 +1829,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 3600, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "reflection_distill", "owned_tables": [], @@ -2284,10 +1844,10 @@ "deadline_seconds()": 240.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": 300, "interval_seconds": 60, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "entity_extractor", "owned_tables": [], @@ -2299,21 +1859,10 @@ "deadline_seconds()": 600.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 60, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='memory_code_links', module='server.memory.workers.code_links', enabled='memory_code_links_enabled', interval='memory_code_links_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='memory_code_links_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 600.0, "name": "memory_code_links", "owned_tables": [], @@ -2325,10 +1874,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "memory_expiry_sweep", "owned_tables": [], @@ -2340,10 +1889,10 @@ "deadline_seconds()": 240.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": 300, "interval_seconds": 60, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "delete_version_check", "owned_tables": [], @@ -2355,21 +1904,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='observe_extract', module='server.memory.workers.observe_extract', enabled='observe_extract_enabled', interval='observe_extract_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='observe_extract_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 900.0, "name": "observe_extract", "owned_tables": [], @@ -2381,21 +1919,10 @@ "deadline_seconds()": 60.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 15, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='extraction_queue', module='server.memory.workers.extraction_queue', enabled='extraction_queue_enabled', interval='extraction_queue_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='extraction_queue_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 0.0, "name": "extraction_queue", "owned_tables": [], @@ -2407,21 +1934,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 120, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='code_ingest', module='server.code.workers.ingest', enabled='code_ingest_enabled', interval='code_ingest_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='code_ingest_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 900.0, "name": "code_ingest", "owned_tables": [], @@ -2433,10 +1949,10 @@ "deadline_seconds()": 240.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 60, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "code_scip_apply", "owned_tables": [], @@ -2448,22 +1964,11 @@ "deadline_seconds()": 27000.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 6, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='code_scip_delta', module='server.code.workers.scip_delta', enabled='code_scip_delta_enabled', interval='code_scip_delta_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='code_scip_delta_timeout_seconds', max_pass_headroom=1800.0, max_pass_fetch_budgets=6, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, - "max_pass_seconds": 27000.0, + "max_pass_seconds": 5400.0, "name": "code_scip_delta", "owned_tables": [], "pass_callable": { @@ -2474,22 +1979,11 @@ "deadline_seconds()": 12600.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 2, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 600, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='code_scip_ts_delta', module='server.code.workers.scip_ts_delta', enabled='code_scip_ts_delta_enabled', interval='code_scip_ts_delta_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='code_scip_ts_delta_timeout_seconds', max_pass_headroom=1800.0, max_pass_fetch_budgets=2, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, - "max_pass_seconds": 12600.0, + "max_pass_seconds": 5400.0, "name": "code_scip_ts_delta", "owned_tables": [], "pass_callable": { @@ -2500,22 +1994,11 @@ "deadline_seconds()": 12600.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 2, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 600, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='code_scip_py_delta', module='server.code.workers.scip_py_delta', enabled='code_scip_py_delta_enabled', interval='code_scip_py_delta_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='code_scip_py_delta_timeout_seconds', max_pass_headroom=1800.0, max_pass_fetch_budgets=2, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, - "max_pass_seconds": 12600.0, + "max_pass_seconds": 5400.0, "name": "code_scip_py_delta", "owned_tables": [], "pass_callable": { @@ -2526,22 +2009,11 @@ "deadline_seconds()": 16200.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 2, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 900, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='code_scip_go_delta', module='server.code.workers.scip_go_delta', enabled='code_scip_go_delta_enabled', interval='code_scip_go_delta_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='code_scip_go_delta_timeout_seconds', max_pass_headroom=1800.0, max_pass_fetch_budgets=2, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, - "max_pass_seconds": 16200.0, + "max_pass_seconds": 9000.0, "name": "code_scip_go_delta", "owned_tables": [], "pass_callable": { @@ -2552,21 +2024,10 @@ "deadline_seconds()": 50400.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 900, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='code_scip_full', module='server.code.workers.scip_full', enabled='code_scip_full_enabled', interval='code_scip_full_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='code_scip_full_timeout_seconds', max_pass_headroom=21600.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 50400.0, "name": "code_scip_full", "owned_tables": [], @@ -2578,10 +2039,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 1800, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "code_crossref", "owned_tables": [], @@ -2593,10 +2054,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 900, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "code_pr_history", "owned_tables": [], @@ -2608,10 +2069,10 @@ "deadline_seconds()": 60.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": 1800, "interval_seconds": 900, - "live_max_pass_seconds": null, "max_pass_seconds": 60.0, "name": "knowledge_source_retire", "owned_tables": [], @@ -2623,10 +2084,10 @@ "deadline_seconds()": 120.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": 120, "interval_seconds": 30, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "code_embed_recovery", "owned_tables": [], @@ -2638,10 +2099,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 21600, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "entity_communities", "owned_tables": [], @@ -2655,21 +2116,10 @@ "first_pass_due": { "id": "server.code.workers.graph_stats:first_pass_due" }, + "git_fetch_budgets": 0, "has_first_pass_hook": true, "idle_interval_seconds": null, "interval_seconds": 604800, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='code_graph_stats', module='server.code.workers.graph_stats', enabled='code_graph_stats_enabled', interval='code_graph_stats_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='code_graph_stats_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due='first_pass_due', owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 3600.0, "name": "code_graph_stats", "owned_tables": [], @@ -2683,21 +2133,10 @@ "id": "server.tracker.workers.test_daily:due_scope" }, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": true, "idle_interval_seconds": null, "interval_seconds": 1800, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='tracker_test_daily', module='server.tracker.workers.test_daily', enabled='tracker_test_daily_enabled', interval='tracker_test_daily_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='tracker_test_daily_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=True)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 900.0, "name": "tracker_test_daily", "owned_tables": [ @@ -2712,10 +2151,10 @@ "deadline_seconds()": 240.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": 300, "interval_seconds": 60, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "task_lease_sweep", "owned_tables": [], @@ -2727,10 +2166,10 @@ "deadline_seconds()": 900.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "oauth_signin_state_sweep", "owned_tables": [], @@ -2742,10 +2181,10 @@ "deadline_seconds()": 240.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 60, - "live_max_pass_seconds": null, "max_pass_seconds": 240.0, "name": "mcp_session_run_sweep", "owned_tables": [], @@ -2757,10 +2196,10 @@ "deadline_seconds()": 120.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": 30, "interval_seconds": 5, - "live_max_pass_seconds": null, "max_pass_seconds": 120.0, "name": "task_webhook_deliver", "owned_tables": [], @@ -2772,21 +2211,10 @@ "deadline_seconds()": 120.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": 30, "interval_seconds": 5, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='memory_webhook_deliver', module='server.memory.workers.webhook_deliver', enabled='memory_webhook_deliver_enabled', interval='memory_webhook_deliver_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval='memory_webhook_deliver_idle_interval_seconds', max_pass_setting='memory_webhook_deliver_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 120.0, "name": "memory_webhook_deliver", "owned_tables": [], @@ -2800,21 +2228,10 @@ "id": "server.tracker.workers.links:due_scope" }, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": true, "idle_interval_seconds": null, "interval_seconds": 86400.0, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='tracker_links', module='server.tracker.workers.links', enabled='tracker_links_enabled', interval='tracker_links_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='tracker_links_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=True)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 3600.0, "name": "tracker_links", "owned_tables": [ @@ -2830,21 +2247,10 @@ "id": "server.tracker.workers.embed:due_scope" }, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": true, "idle_interval_seconds": null, "interval_seconds": 1800.0, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='tracker_embed', module='server.tracker.workers.embed', enabled='tracker_embed_enabled', interval='tracker_embed_interval_seconds', pass_attr='run_pass', also_requires=None, idle_interval=None, max_pass_setting='tracker_embed_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=True)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 900.0, "name": "tracker_embed", "owned_tables": [ @@ -2858,21 +2264,10 @@ "deadline_seconds()": 3600.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 86400.0, - "live_max_pass_seconds": { - "cells": [ - "_Worker(name='code_backport_gaps', module='server.code.workers.backport_gaps', enabled='code_backport_gaps_enabled', interval='code_backport_gaps_interval_seconds', pass_attr='run_pass', also_requires='code_pr_history_enabled', idle_interval=None, max_pass_setting='code_backport_gaps_max_pass_seconds', max_pass_headroom=0.0, max_pass_fetch_budgets=0, max_pass_attr=None, first_pass_due=None, owned_tables=False)" - ], - "freevars": [ - "row" - ], - "id": "server.workers.registry:live", - "names": [ - "_setting_deadline" - ] - }, "max_pass_seconds": 3600.0, "name": "code_backport_gaps", "owned_tables": [], @@ -2884,10 +2279,10 @@ "deadline_seconds()": 240.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": 120, "interval_seconds": 60, - "live_max_pass_seconds": null, "max_pass_seconds": null, "name": "code_coverage_notify", "owned_tables": [], diff --git a/tests/unit/test_worker_pass_deadline.py b/tests/unit/test_worker_pass_deadline.py index 64177ec086e..651e361a094 100644 --- a/tests/unit/test_worker_pass_deadline.py +++ b/tests/unit/test_worker_pass_deadline.py @@ -70,7 +70,7 @@ def test_registry_pins_the_two_long_pass_workers_at_900(monkeypatch: pytest.Monk assert Settings.model_fields["code_ingest_max_pass_seconds"].default == 900 -def test_a_runtime_settings_update_moves_a_started_specs_deadline( +def test_a_runtime_fetch_timeout_update_moves_a_started_specs_deadline( monkeypatch: pytest.MonkeyPatch, ) -> None: from server.settings import settings @@ -84,25 +84,21 @@ def test_a_runtime_settings_update_moves_a_started_specs_deadline( settings, "code_git_fetch_timeout_s", settings.code_git_fetch_timeout_s + 1000 ) assert spec.deadline_seconds() == before + 2000.0 - # The harness timeout the same sum carries. - monkeypatch.setattr( - settings, - "code_scip_ts_delta_timeout_seconds", - settings.code_scip_ts_delta_timeout_seconds + 500, - ) - assert spec.deadline_seconds() == before + 2500.0 async def test_the_next_pass_runs_under_the_deadline_read_at_its_admission( - emitter: _Emitter, + emitter: _Emitter, monkeypatch: pytest.MonkeyPatch ) -> None: + from server.settings import settings + + monkeypatch.setattr(settings, "code_git_fetch_timeout_s", 0.0) calls = {"n": 0} - live = {"seconds": 0.05} async def _pass() -> None: calls["n"] += 1 if calls["n"] == 1: - live["seconds"] = 5.0 # a runtime update after the supervisor started + # A runtime update after the supervisor started. + monkeypatch.setattr(settings, "code_git_fetch_timeout_s", 5.0) await asyncio.sleep(0.2) s = _supervisor(2, calls) @@ -111,7 +107,7 @@ async def _pass() -> None: 1.0, _pass, max_pass_seconds=0.05, - live_max_pass_seconds=lambda: live["seconds"], + git_fetch_budgets=1, ) genai.set_identity() await asyncio.wait_for(s._supervise(spec), timeout=5) diff --git a/tests/unit/test_worker_registry_rows.py b/tests/unit/test_worker_registry_rows.py index 8a9e1076e6b..9e8aec76f45 100644 --- a/tests/unit/test_worker_registry_rows.py +++ b/tests/unit/test_worker_registry_rows.py @@ -161,7 +161,7 @@ def test_a_compiler_tiers_pass_deadline_covers_its_checkout_move( monkeypatch.setattr(settings, harness_setting, 3500.0) monkeypatch.setattr(settings, "code_git_fetch_timeout_s", 3600.0) spec = registry._spec_for(_row(name)) - assert spec.max_pass_seconds == 3500.0 + registry._TIER_HEADROOM_S + steps * 3600.0 + assert spec.deadline_seconds() == 3500.0 + registry._TIER_HEADROOM_S + steps * 3600.0 def test_the_extraction_queue_keeps_four_intervals_while_its_deadline_is_unset( diff --git a/tests/unit/test_worker_registry_snapshot.py b/tests/unit/test_worker_registry_snapshot.py index ebbb27de465..ebfd12e857f 100644 --- a/tests/unit/test_worker_registry_snapshot.py +++ b/tests/unit/test_worker_registry_snapshot.py @@ -96,12 +96,7 @@ def _snapshot_specs() -> list[dict[str, Any]]: row: dict[str, Any] = {} for field in dataclasses.fields(spec): value = getattr(spec, field.name) - if field.name in ( - "pass_callable", - "first_pass_due", - "due_scope", - "live_max_pass_seconds", - ): + if field.name in ("pass_callable", "first_pass_due", "due_scope"): row[field.name] = None if value is None else _fingerprint(value) elif field.name == "owned_tables": row[field.name] = [repr(t) for t in value] From 79dc195f98894e5771f8ca7eb66b35e7ed72ba91 Mon Sep 17 00:00:00 2001 From: Kaloyan Naumov Date: Wed, 2 Dec 2026 20:24:18 +0000 Subject: [PATCH 07/13] Fixtures patch the checkout seam each delta worker keeps The clang delta worker moves its checkout through the shared helper, so `scip_delta.git` no longer exists and the cancellation and untrusted-file fixtures raised AttributeError in setup, never reaching the behaviour they assert. They patch the seam their worker exposes: the shared helper for the clang worker, git for the language workers. The cancellation, rejection and watermark assertions are unchanged. Signed-off-by: Kaloyan Naumov --- tests/unit/test_code_scip_harness_group_kill.py | 4 ++-- tests/unit/test_code_untrusted_files.py | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/unit/test_code_scip_harness_group_kill.py b/tests/unit/test_code_scip_harness_group_kill.py index 089df1373d4..b7c8793117c 100644 --- a/tests/unit/test_code_scip_harness_group_kill.py +++ b/tests/unit/test_code_scip_harness_group_kill.py @@ -46,10 +46,10 @@ def _cpp(tmp: Path, monkeypatch: pytest.MonkeyPatch) -> Callable[[], Awaitable[A clang.write_text("") monkeypatch.setattr(code_scip_delta.settings, "code_scip_clang_path", str(clang)) - async def _no_git(*_a: Any, **_k: Any) -> None: + async def _no_checkout(*_a: Any, **_k: Any) -> None: return None - monkeypatch.setattr(code_scip_delta, "git", _no_git) + monkeypatch.setattr(code_scip_delta, "move_checkout", _no_checkout) cfg = repo_config(org="o", namespace="ns", scip_checkout_dir=str(tmp), git_dir=str(tmp)) repo: Any = _Repo() return lambda: code_scip_delta._run_repo(repo, cfg, code_scip_delta.CodeScipDeltaResult()) diff --git a/tests/unit/test_code_untrusted_files.py b/tests/unit/test_code_untrusted_files.py index 2760bd98e9b..4a8781c1d50 100644 --- a/tests/unit/test_code_untrusted_files.py +++ b/tests/unit/test_code_untrusted_files.py @@ -326,7 +326,10 @@ def _host(monkeypatch, tmp_path: Path, worker: Any) -> None: (tmp_path / "repo.git").mkdir() monkeypatch.setattr(worker.settings, "code_scip_checkout_dir", str(tmp_path / "checkout")) monkeypatch.setattr(worker.settings, "code_git_dir", str(tmp_path / "repo.git")) - monkeypatch.setattr(worker, "git", AsyncMock()) + # The clang worker moves its checkout through the shared helper; the language + # workers still shell out to git themselves. + seam = "move_checkout" if hasattr(worker, "move_checkout") else "git" + monkeypatch.setattr(worker, seam, AsyncMock()) def _refused(res: Any, apply: AsyncMock, repo: AsyncMock) -> None: From cb78a1b0887aa8f0c332f9b42d5a77b2443c4f93 Mon Sep 17 00:00:00 2001 From: Kaloyan Naumov Date: Thu, 3 Dec 2026 09:19:11 +0000 Subject: [PATCH 08/13] Fixtures patch the clang checkout seam the worker keeps The C++ delta worker moves its checkout through `scip_full.move_checkout`, so `scip_delta` no longer holds `git`. The environment-passthrough fixture patched that name and raised AttributeError in setup, never reaching the harness environment its two cases assert. It patches `move_checkout`, the seam the cancellation and untrusted-file fixtures already patch; the assertions are unchanged. Signed-off-by: Kaloyan Naumov --- tests/unit/test_code_tier_env_passthrough.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/unit/test_code_tier_env_passthrough.py b/tests/unit/test_code_tier_env_passthrough.py index 9b892905b8e..4fe1eaba6ec 100644 --- a/tests/unit/test_code_tier_env_passthrough.py +++ b/tests/unit/test_code_tier_env_passthrough.py @@ -101,7 +101,9 @@ async def _cpp_delta_env( clang = tmp_path / "scip-clang" clang.write_text("") monkeypatch.setattr(code_scip_delta.settings, "code_scip_clang_path", str(clang)) - monkeypatch.setattr(code_scip_delta, "git", AsyncMock(return_value=None)) + # the clang worker moves its checkout through `scip_full.move_checkout`, which + # calls the tier helper; the worker no longer holds `git` itself + monkeypatch.setattr(code_scip_delta, "move_checkout", AsyncMock(return_value=None)) monkeypatch.setenv("NPM_TOKEN", "t0k") monkeypatch.setenv("OTHER_TOKEN", "nope") monkeypatch.setattr(code_scip_delta.settings, "code_tier_env_passthrough", "NPM_TOKEN,PYTHON") From 43896a519e96a2d81c6bd1bdbaaff40f7065d5bb Mon Sep 17 00:00:00 2001 From: Kaloyan Naumov Date: Thu, 3 Dec 2026 19:35:57 +0000 Subject: [PATCH 09/13] The worker snapshot carries git_fetch_budgets on the code calibration row (#2013) main grew the field on every worker row; the branch snapshot predates it, so the snapshot test failed on the merge and passed on main. Regenerated with LOOM_UPDATE_WORKER_SNAPSHOT=1 against the combined tree: one line added, the code_calibration row only. Signed-off-by: Kaloyan Naumov --- tests/unit/snapshots/worker_registry.json | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/unit/snapshots/worker_registry.json b/tests/unit/snapshots/worker_registry.json index 7a20b67151c..4dd9aaad172 100644 --- a/tests/unit/snapshots/worker_registry.json +++ b/tests/unit/snapshots/worker_registry.json @@ -66,6 +66,7 @@ "deadline_seconds()": 3600.0, "due_scope": null, "first_pass_due": null, + "git_fetch_budgets": 0, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 3600, From 395b611f97a2593ce091f83efd1b2c2ef2f3f301 Mon Sep 17 00:00:00 2001 From: Kaloyan Naumov Date: Fri, 4 Dec 2026 21:39:51 +0000 Subject: [PATCH 10/13] A compiler tier budgets every attempt of its checkout move (#2013) The clang delta row budgeted six git steps for a move that runs six commands with one retry each: twelve attempts. The steps now live in compiler_tier (SUBMODULE_STEPS, checkout_lead_steps) and move_checkout runs them through one runner, so checkout_move_attempts() is the sequence's own count; the registry row reads it from the worker module (max_pass_fetch_budgets_attr) instead of carrying a hand count. The deadline goes 27000 s to 48600 s on the default fetch timeout, and the step list cannot grow without the budget growing with it. --- server/code/app/index/compiler_tier.py | 97 ++++++++++++++++------- server/code/app/index/scip_full.py | 28 +++---- server/code/workers/scip_delta.py | 5 ++ server/workers/registry.py | 18 ++++- tests/unit/snapshots/worker_registry.json | 12 +-- tests/unit/test_worker_pass_deadline.py | 37 +++++++++ tests/unit/test_worker_registry_rows.py | 22 +++-- 7 files changed, 161 insertions(+), 58 deletions(-) diff --git a/server/code/app/index/compiler_tier.py b/server/code/app/index/compiler_tier.py index 1e4e489ef66..eec9afd49dc 100644 --- a/server/code/app/index/compiler_tier.py +++ b/server/code/app/index/compiler_tier.py @@ -18,7 +18,7 @@ import subprocess from collections.abc import Awaitable, Callable, Mapping, Sequence from pathlib import Path -from typing import TYPE_CHECKING, Any, Protocol, TypedDict, Unpack +from typing import TYPE_CHECKING, Any, NamedTuple, Protocol, TypedDict, Unpack from server.code.app.index import erasing, tier_health from server.code.app.index.entry_lock import EntryLockHeld, EntryLockLost, check_held, entry_lock @@ -659,33 +659,76 @@ class GitBudget(TypedDict, total=False): retries: int +class GitStep(NamedTuple): + """One `git` call of a checkout move: its words after `git`, the bare clone a + fetch reads, and whether the step reaches the network.""" + + args: tuple[str, ...] + local_remote: Path | None = None + network: bool = False + + +# The submodule half of a checkout move. `update` fetches from the URL a submodule +# was first initialized with, so the URLs are synced from the checked-out +# .gitmodules: the top level's first, then, once it is at its pins, the nested ones' +# from their parents' new trees. A submodule three levels down that moved syncs a +# pass later. +SUBMODULE_STEPS: tuple[GitStep, ...] = ( + GitStep(("submodule", "sync", "--quiet")), + GitStep(("submodule", "update", "--init", "--quiet"), network=True), + GitStep(("submodule", "sync", "--recursive", "--quiet")), + GitStep(("submodule", "update", "--init", "--recursive", "--quiet"), network=True), +) + +# How many times `git` runs a timed-out step again, so one step is up to +# `1 + CHECKOUT_MOVE_RETRIES` attempts. +CHECKOUT_MOVE_RETRIES = 1 + + +def checkout_lead_steps(bare: Path, target: str) -> tuple[GitStep, ...]: + """The move's steps ahead of the submodules: the fetch of `target` from the bare + clone and the forced checkout of it. The fetch never recurses: one submodule pin + rewritten away upstream fatals the whole fetch.""" + return ( + GitStep(tuple(checkout_fetch_args(bare, target)), local_remote=bare), + GitStep(("checkout", "--force", target)), + ) + + +def checkout_move_attempts() -> int: + """The most `git` runs one checkout move can make: the lead steps, then the + submodule steps (`update_submodules`), each run once more after a timeout. A tier + whose pass moves a checkout adds this many `code_git_fetch_timeout_s` budgets to + its deadline (`WorkerSpec.git_fetch_budgets`), read from here so the count cannot + fall behind the sequence. The empty arguments only size the list: the builders + take their paths and read no repository.""" + return (len(checkout_lead_steps(Path(), "")) + len(SUBMODULE_STEPS)) * ( + 1 + CHECKOUT_MOVE_RETRIES + ) + + +async def run_checkout_steps( + checkout: Path, steps: Sequence[GitStep], cfg: RepoConfig, **budget: Unpack[GitBudget] +) -> None: + """Run `steps` in order as `git` jobs of `checkout`: the fetch reads its bare + clone and no network, the submodule updates reach the network with the entry's + token and proxy identity.""" + for step in steps: + kwargs: dict[str, Any] = {"local_remote": step.local_remote, **budget} + if step.network: + kwargs.update( + network=True, + token=cfg.github_token, + remote=cfg.git_remote, + proxy_identity=cfg.git_proxy_identity, + ) + await git(checkout, *step.args, **kwargs) + + async def update_submodules(checkout: Path, cfg: RepoConfig, **budget: Unpack[GitBudget]) -> None: - """Check the submodules out at their pins. `update` fetches from the URL a submodule - was first initialized with, so the URLs are synced from the checked-out .gitmodules: - the top level's first, then, once it is at its pins, the nested ones' from their - parents' new trees. A submodule three levels down that moved syncs a pass later.""" - for recursive in ((), ("--recursive",)): - await git( - checkout, - "submodule", - "sync", - *recursive, - "--quiet", - **budget, - ) - await git( - checkout, - "submodule", - "update", - "--init", - *recursive, - "--quiet", - network=True, - token=cfg.github_token, - remote=cfg.git_remote, - proxy_identity=cfg.git_proxy_identity, - **budget, - ) + """Check the submodules out at their pins, through `SUBMODULE_STEPS` (the steps a + checkout move's submodule half is budgeted for).""" + await run_checkout_steps(checkout, SUBMODULE_STEPS, cfg, **budget) async def git( diff --git a/server/code/app/index/scip_full.py b/server/code/app/index/scip_full.py index ec9bb5e7462..2e3b0f2605e 100644 --- a/server/code/app/index/scip_full.py +++ b/server/code/app/index/scip_full.py @@ -74,26 +74,24 @@ def __init__(self, returncode: int, tail: str, *, kind: str = "") -> None: async def move_checkout(checkout: Path, bare: Path, target: str, cfg: RepoConfig) -> None: """Fetch `target` from the bare clone, force-check it out, then the submodules exactly at their pins. Never recurse submodules on the fetch: one pin rewritten - away upstream fatals the whole fetch. Each step gets `code_git_fetch_timeout_s` - and one retry; the fetch reads the bare clone, the submodule pins come from the - network. The delta workers move their checkouts under the same budget.""" - await compiler_tier.git( + away upstream fatals the whole fetch. Every step runs under + `code_git_fetch_timeout_s` with one retry (`compiler_tier.CHECKOUT_MOVE_RETRIES`): + the fetch reads the bare clone, the submodule pins come from the network. + `compiler_tier.checkout_move_attempts` counts the steps of both halves, and the + registry gives a tier's pass deadline that many budgets, so the deadline covers + the whole move rather than a hand-counted part of it.""" + await compiler_tier.run_checkout_steps( checkout, - *compiler_tier.checkout_fetch_args(bare, target), - local_remote=bare, + compiler_tier.checkout_lead_steps(bare, target), + cfg, timeout_s=settings.code_git_fetch_timeout_s, - retries=1, + retries=compiler_tier.CHECKOUT_MOVE_RETRIES, ) - await compiler_tier.git( + await compiler_tier.update_submodules( checkout, - "checkout", - "--force", - target, + cfg, timeout_s=settings.code_git_fetch_timeout_s, - retries=1, - ) - await compiler_tier.update_submodules( - checkout, cfg, timeout_s=settings.code_git_fetch_timeout_s, retries=1 + retries=compiler_tier.CHECKOUT_MOVE_RETRIES, ) diff --git a/server/code/workers/scip_delta.py b/server/code/workers/scip_delta.py index e2f8562ddb5..064f67923af 100644 --- a/server/code/workers/scip_delta.py +++ b/server/code/workers/scip_delta.py @@ -31,6 +31,7 @@ from typing import TYPE_CHECKING from server.code.app.index.compiler_tier import ( + checkout_move_attempts, compiler_target, harness_failure, open_tier_delta, @@ -57,6 +58,10 @@ _HARNESS = SCIP_HARNESS_DIR / "run_delta.sh" PRODUCER = "clang" WATERMARK = "scip_commit" +# The checkout move's worst case: every git attempt `move_checkout` can make (its +# steps, retried once each). The registry reads this for the pass deadline's git +# budget, so the deadline covers the sequence the pass actually runs. +CHECKOUT_MOVE_ATTEMPTS = checkout_move_attempts() @dataclass diff --git a/server/workers/registry.py b/server/workers/registry.py index 0a4a8b32c65..ec95433b354 100644 --- a/server/workers/registry.py +++ b/server/workers/registry.py @@ -122,9 +122,13 @@ class _Worker: # Seconds added to `max_pass_setting`: a harness timeout leaves the steps # around the harness (fetch, submodules, apply) no time of their own. max_pass_headroom: float = 0.0 - # Git steps of a checkout move, each of which may run for + # Git attempts of a checkout move, each of which may run for # `code_git_fetch_timeout_s` (a retry doubles a step); added on top of the headroom. max_pass_fetch_budgets: int = 0 + # The same count, read from a module attribute of the worker's own module, for a + # pass whose git sequence is a list there: the budget is derived from the list it + # runs (`compiler_tier.checkout_move_attempts`), never counted by hand. + max_pass_fetch_budgets_attr: str | None = None # WorkerSpec.max_pass_seconds from this module attribute. max_pass_attr: str | None = None # WorkerSpec.first_pass_due from this module attribute. @@ -149,12 +153,15 @@ def _spec_for(row: _Worker) -> WorkerSpec: max_pass = float(getattr(settings, row.max_pass_setting)) + row.max_pass_headroom if row.max_pass_attr is not None: max_pass = float(getattr(mod, row.max_pass_attr)) + fetch_budgets = row.max_pass_fetch_budgets + if row.max_pass_fetch_budgets_attr is not None: + fetch_budgets = int(getattr(mod, row.max_pass_fetch_budgets_attr)) return WorkerSpec( row.name, row.cadence_seconds(), pass_callable, max_pass_seconds=max_pass, - git_fetch_budgets=row.max_pass_fetch_budgets if row.max_pass_attr is None else 0, + git_fetch_budgets=fetch_budgets if row.max_pass_attr is None else 0, first_pass_due=getattr(mod, row.first_pass_due) if row.first_pass_due else None, owned_tables=mod.OWNED_TABLES if row.owned_tables else (), due_scope=mod.due_scope if row.owned_tables else None, @@ -417,8 +424,11 @@ def _spec_for(row: _Worker) -> WorkerSpec: "code_scip_delta_interval_seconds", max_pass_setting="code_scip_delta_timeout_seconds", max_pass_headroom=_TIER_HEADROOM_S, - # fetch, forced checkout and submodule update, one retry each - max_pass_fetch_budgets=6, + # The checkout move's whole sequence: the fetch, the forced checkout and the + # two submodule sync-update pairs, each run once more after a timeout. The + # count is that list's (`compiler_tier.checkout_move_attempts`, via the + # worker module), so a longer sequence cannot outgrow the budget again. + max_pass_fetch_budgets_attr="CHECKOUT_MOVE_ATTEMPTS", ), _Worker( "code_scip_ts_delta", diff --git a/tests/unit/snapshots/worker_registry.json b/tests/unit/snapshots/worker_registry.json index 4dd9aaad172..4d8e0fb3a98 100644 --- a/tests/unit/snapshots/worker_registry.json +++ b/tests/unit/snapshots/worker_registry.json @@ -515,10 +515,10 @@ } }, { - "deadline_seconds()": 27000.0, + "deadline_seconds()": 48600.0, "due_scope": null, "first_pass_due": null, - "git_fetch_budgets": 6, + "git_fetch_budgets": 12, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, @@ -1284,10 +1284,10 @@ } }, { - "deadline_seconds()": 27000.0, + "deadline_seconds()": 48600.0, "due_scope": null, "first_pass_due": null, - "git_fetch_budgets": 6, + "git_fetch_budgets": 12, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, @@ -1976,10 +1976,10 @@ } }, { - "deadline_seconds()": 27000.0, + "deadline_seconds()": 48600.0, "due_scope": null, "first_pass_due": null, - "git_fetch_budgets": 6, + "git_fetch_budgets": 12, "has_first_pass_hook": false, "idle_interval_seconds": null, "interval_seconds": 300, diff --git a/tests/unit/test_worker_pass_deadline.py b/tests/unit/test_worker_pass_deadline.py index 651e361a094..d433bf8bef1 100644 --- a/tests/unit/test_worker_pass_deadline.py +++ b/tests/unit/test_worker_pass_deadline.py @@ -4,6 +4,7 @@ from __future__ import annotations import asyncio +from pathlib import Path import pytest @@ -86,6 +87,42 @@ def test_a_runtime_fetch_timeout_update_moves_a_started_specs_deadline( assert spec.deadline_seconds() == before + 2000.0 +async def test_the_clang_tier_deadline_covers_every_checkout_move_attempt( + monkeypatch: pytest.MonkeyPatch, tmp_path: Path +) -> None: + """`move_checkout` runs six git commands and retries each one once, so a move + whose commands all time out consumes twelve `code_git_fetch_timeout_s` — the + registry budgeted six, and the supervisor reached the deadline in the middle of + the fourth command's retry, cancelling a move the git steps were still entitled + to finish. The commands are counted from the move itself, not restated here.""" + from server.code.app.index import compiler_tier, scip_full + from server.settings import settings + from server.workers import registry + from tests.unit.code_fixtures import repo_config + + attempts: list[float] = [] + + async def _git( + cwd: Path, *args: str, timeout_s: float = 600.0, retries: int = 0, **_: object + ) -> None: + # every attempt of every command times out: the worst case a budget covers + attempts.extend([timeout_s] * (1 + retries)) + + monkeypatch.setattr(compiler_tier, "git", _git) + monkeypatch.setattr(settings, "code_git_fetch_timeout_s", 600.0) + monkeypatch.setattr(settings, "code_scip_delta_enabled", True) + await scip_full.move_checkout( + tmp_path / "checkout", tmp_path / "bare.git", "a" * 40, repo_config() + ) + + spec = {w.name: w for w in registry.enabled_workers()}["code_scip_delta"] + # six commands, each retried once, all budgeted + assert len(attempts) == 12 + assert spec.git_fetch_budgets == len(attempts) + assert compiler_tier.checkout_move_attempts() == len(attempts) + assert spec.deadline_seconds() - float(spec.max_pass_seconds or 0.0) >= sum(attempts) + + async def test_the_next_pass_runs_under_the_deadline_read_at_its_admission( emitter: _Emitter, monkeypatch: pytest.MonkeyPatch ) -> None: diff --git a/tests/unit/test_worker_registry_rows.py b/tests/unit/test_worker_registry_rows.py index 9e8aec76f45..6febcff15a1 100644 --- a/tests/unit/test_worker_registry_rows.py +++ b/tests/unit/test_worker_registry_rows.py @@ -141,27 +141,37 @@ def test_a_workers_spec_takes_its_pass_deadline_from_its_setting( assert registry._spec_for(row).max_pass_seconds == 42.0 +# The clang tier's budget is `None` here because it is not a number in the row: it +# is the checkout move's attempt count, derived from the step list the move runs +# (`compiler_tier.checkout_move_attempts`). The other three run the fetch and the +# forced checkout, no retry, so their two commands are two attempts. @pytest.mark.parametrize( - ("name", "harness_setting", "steps"), + ("name", "harness_setting", "attempts"), [ - ("code_scip_delta", "code_scip_delta_timeout_seconds", 6), + ("code_scip_delta", "code_scip_delta_timeout_seconds", None), ("code_scip_ts_delta", "code_scip_ts_delta_timeout_seconds", 2), ("code_scip_py_delta", "code_scip_py_delta_timeout_seconds", 2), ("code_scip_go_delta", "code_scip_go_delta_timeout_seconds", 2), ], ) def test_a_compiler_tiers_pass_deadline_covers_its_checkout_move( - name: str, harness_setting: str, steps: int, monkeypatch: pytest.MonkeyPatch + name: str, harness_setting: str, attempts: int | None, monkeypatch: pytest.MonkeyPatch ) -> None: """The checkout steps run under `code_git_fetch_timeout_s`; the pass outlives - the harness timeout by the headroom plus every step's budget, so a slow first - fetch is not cut by the supervisor before the harness runs.""" + the harness timeout by the headroom plus every attempt's budget, so a slow first + fetch is not cut by the supervisor before the harness runs. Every attempt of the + move is budgeted: a row that counts commands rather than attempts (six for a + twelve-attempt move) leaves the last commands outside the deadline.""" + from server.code.app.index import compiler_tier from server.settings import settings + if attempts is None: + attempts = compiler_tier.checkout_move_attempts() monkeypatch.setattr(settings, harness_setting, 3500.0) monkeypatch.setattr(settings, "code_git_fetch_timeout_s", 3600.0) spec = registry._spec_for(_row(name)) - assert spec.deadline_seconds() == 3500.0 + registry._TIER_HEADROOM_S + steps * 3600.0 + assert spec.git_fetch_budgets == attempts + assert spec.deadline_seconds() == 3500.0 + registry._TIER_HEADROOM_S + attempts * 3600.0 def test_the_extraction_queue_keeps_four_intervals_while_its_deadline_is_unset( From ef4552ef5f07367f77b001e8c4e2e69580b96be9 Mon Sep 17 00:00:00 2001 From: Kaloyan Naumov Date: Sat, 5 Dec 2026 01:57:03 +0000 Subject: [PATCH 11/13] Run a checkout move under the git timeout its pass was admitted with The supervisor fixes a pass deadline at admission from code_git_fetch_timeout_s, but move_checkout read the setting again for each half of the move. An operator raising it during the checkout gave the submodule steps the new value, so the move could outlast the deadline it was admitted under. The supervisor now reads the timeout once at admission, prices the deadline at it and records it on the pass context. move_checkout reads it once from there (the live setting outside a supervised pass) and runs every step, submodules included, under that value. Assisted-by: Claude Code:claude-sonnet-5-5 Co-Authored-By: Claude Sonnet 5.5 Signed-off-by: Kaloyan Naumov --- server/code/app/index/scip_full.py | 15 ++++++-- server/workers/pass_context.py | 5 +++ server/workers/registry.py | 10 ++++-- server/workers/supervisor.py | 7 ++-- tests/unit/test_worker_pass_deadline.py | 46 +++++++++++++++++++++++++ 5 files changed, 76 insertions(+), 7 deletions(-) diff --git a/server/code/app/index/scip_full.py b/server/code/app/index/scip_full.py index 2e3b0f2605e..bfe75b03991 100644 --- a/server/code/app/index/scip_full.py +++ b/server/code/app/index/scip_full.py @@ -26,6 +26,7 @@ from server.code.app.index.untrusted_files import changed_while_read, open_regular from server.core.paths import SCIP_HARNESS_DIR from server.settings import settings +from server.workers import pass_context if TYPE_CHECKING: from server.code.domain.index.repos import RepoConfig @@ -79,18 +80,26 @@ async def move_checkout(checkout: Path, bare: Path, target: str, cfg: RepoConfig the fetch reads the bare clone, the submodule pins come from the network. `compiler_tier.checkout_move_attempts` counts the steps of both halves, and the registry gives a tier's pass deadline that many budgets, so the deadline covers - the whole move rather than a hand-counted part of it.""" + the whole move rather than a hand-counted part of it. The timeout is the one + the pass was admitted with (`pass_context.git_fetch_timeout_s`), read once for + every step: a runtime update during the move cannot outlast the pass deadline.""" + ctx = pass_context.current() + timeout_s = ( + ctx.git_fetch_timeout_s + if ctx is not None and ctx.git_fetch_timeout_s is not None + else settings.code_git_fetch_timeout_s + ) await compiler_tier.run_checkout_steps( checkout, compiler_tier.checkout_lead_steps(bare, target), cfg, - timeout_s=settings.code_git_fetch_timeout_s, + timeout_s=timeout_s, retries=compiler_tier.CHECKOUT_MOVE_RETRIES, ) await compiler_tier.update_submodules( checkout, cfg, - timeout_s=settings.code_git_fetch_timeout_s, + timeout_s=timeout_s, retries=compiler_tier.CHECKOUT_MOVE_RETRIES, ) diff --git a/server/workers/pass_context.py b/server/workers/pass_context.py index faad37f4a02..9794b91d997 100644 --- a/server/workers/pass_context.py +++ b/server/workers/pass_context.py @@ -57,6 +57,11 @@ class PassContext: # an `idle_interval_seconds` is next run after that instead of its # interval: it asks less often while the last answer was "nothing". idle: bool = False + # `code_git_fetch_timeout_s` as the supervisor read it at admission, the value + # the pass deadline was computed from. A checkout move runs its git steps under + # it, so an operator raising the setting mid-pass cannot outlast that deadline. + # None outside a supervised pass. + git_fetch_timeout_s: float | None = None # The outcome `status.record_pass(worker)` recorded when this pass's # block finished cleanly; None when it recorded none (it raised, it was # cancelled, or the worker does not use `record_pass`). The status row diff --git a/server/workers/registry.py b/server/workers/registry.py index ec95433b354..d3a96d6bc36 100644 --- a/server/workers/registry.py +++ b/server/workers/registry.py @@ -67,12 +67,18 @@ class WorkerSpec: # there is none, instead of scanning its table at one cadence for both. idle_interval_seconds: float | None = None - def deadline_seconds(self) -> float: + def deadline_seconds(self, git_fetch_timeout_s: float | None = None) -> float: + """The pass deadline. `git_fetch_timeout_s` is the timeout the budgets are + priced at: the supervisor reads it once at admission and gives the pass the + same value; None reads the live setting.""" seconds = self.max_pass_seconds if seconds is not None and seconds > 0: - return float(seconds) + self.git_fetch_budgets * float( + fetch_s = ( settings.code_git_fetch_timeout_s + if git_fetch_timeout_s is None + else git_fetch_timeout_s ) + return float(seconds) + self.git_fetch_budgets * float(fetch_s) return default_max_pass_seconds(self.interval_seconds) def first_pass_hook(self) -> Callable[[], Awaitable[bool]] | None: diff --git a/server/workers/supervisor.py b/server/workers/supervisor.py index 2b60d55823c..e809743fabf 100644 --- a/server/workers/supervisor.py +++ b/server/workers/supervisor.py @@ -291,8 +291,11 @@ async def _supervise(self, spec: WorkerSpec) -> None: started = time.monotonic() in_pass = True # The deadline is read here, from the live settings: a - # runtime update reaches the next pass. - deadline = spec.deadline_seconds() + # runtime update reaches the next pass, not this one. The + # git timeout it is priced at is the one the pass's checkout + # steps run under (`pass_context.git_fetch_timeout_s`). + ctx.git_fetch_timeout_s = float(settings.code_git_fetch_timeout_s) + deadline = spec.deadline_seconds(ctx.git_fetch_timeout_s) async with asyncio.timeout(deadline): await spec.pass_callable() in_pass = False diff --git a/tests/unit/test_worker_pass_deadline.py b/tests/unit/test_worker_pass_deadline.py index d433bf8bef1..2a053b3e2b3 100644 --- a/tests/unit/test_worker_pass_deadline.py +++ b/tests/unit/test_worker_pass_deadline.py @@ -155,6 +155,52 @@ async def _pass() -> None: genai.set_identity() +async def test_a_checkout_move_keeps_the_timeout_its_pass_was_admitted_with( + emitter: _Emitter, monkeypatch: pytest.MonkeyPatch, tmp_path: Path +) -> None: + """The deadline is fixed from `code_git_fetch_timeout_s` at admission; an + operator raising it during the checkout must not reach the steps still to run, or + the move outlives the deadline it was admitted under (a 0.28 s pass whose + submodule update was then given a 1 s timeout).""" + from server.code.app.index import compiler_tier, scip_full + from server.settings import settings + from tests.unit.code_fixtures import repo_config + + seen: list[float] = [] + + async def _git( + cwd: Path, *args: str, timeout_s: float = 600.0, retries: int = 0, **_: object + ) -> None: + seen.append(timeout_s) + if len(seen) == 2: + # and again between the lead steps and the submodules + monkeypatch.setattr(settings, "code_git_fetch_timeout_s", 1.0) + + monkeypatch.setattr(compiler_tier, "git", _git) + monkeypatch.setattr(settings, "code_git_fetch_timeout_s", 0.05) + calls = {"n": 0} + + async def _pass() -> None: + calls["n"] += 1 + monkeypatch.setattr(settings, "code_git_fetch_timeout_s", 0.5) # after admission + await scip_full.move_checkout( + tmp_path / "checkout", tmp_path / "bare.git", "a" * 40, repo_config() + ) + + spec = WorkerSpec( + "checkout_probe", + 1.0, + _pass, + max_pass_seconds=0.05, + git_fetch_budgets=compiler_tier.checkout_move_attempts(), + ) + s = _supervisor(1, calls) + genai.set_identity() + await asyncio.wait_for(s._supervise(spec), timeout=5) + assert seen == [0.05] * 6 + genai.set_identity() + + async def test_a_pass_past_its_deadline_is_a_counted_failure(emitter: _Emitter) -> None: calls = {"n": 0} From 541204edc7bab3f0e07d52bbb78c1a63ce1e660b Mon Sep 17 00:00:00 2001 From: Kaloyan Naumov Date: Sat, 5 Dec 2026 02:01:39 +0000 Subject: [PATCH 12/13] Give the other compiler tiers' checkout steps one admitted timeout The Go, TypeScript and Python delta workers fetch and then check out under code_git_fetch_timeout_s, reading the setting once per step. A runtime update between the two steps gave the second one a longer timeout than the pass deadline was priced at, the same gap the clang move had. compiler_tier.fetch_timeout_s returns the timeout the supervisor read at admission (the live setting outside a supervised pass), and the three workers and move_checkout read it once for both steps. Assisted-by: Claude Code:claude-sonnet-5-5 Co-Authored-By: Claude Sonnet 5.5 Signed-off-by: Kaloyan Naumov --- server/code/app/index/compiler_tier.py | 11 +++++++++++ server/code/app/index/scip_full.py | 8 +------- server/code/workers/scip_go_delta.py | 6 ++++-- server/code/workers/scip_py_delta.py | 6 ++++-- server/code/workers/scip_ts_delta.py | 6 ++++-- tests/unit/test_worker_pass_deadline.py | 24 ++++++++++++++++++++++++ 6 files changed, 48 insertions(+), 13 deletions(-) diff --git a/server/code/app/index/compiler_tier.py b/server/code/app/index/compiler_tier.py index eec9afd49dc..ff760c38025 100644 --- a/server/code/app/index/compiler_tier.py +++ b/server/code/app/index/compiler_tier.py @@ -652,6 +652,17 @@ def checkout_fetch_args(bare: Path | str, target: str) -> list[str]: ] +def fetch_timeout_s() -> float: + """`code_git_fetch_timeout_s` as the supervisor read it when it admitted this pass + (the value the pass deadline is priced at), the live setting outside a supervised + pass. A checkout reads it once and gives it to every git step, so a runtime update + during the checkout cannot outlast the deadline.""" + ctx = pass_context.current() + if ctx is not None and ctx.git_fetch_timeout_s is not None: + return ctx.git_fetch_timeout_s + return float(settings.code_git_fetch_timeout_s) + + class GitBudget(TypedDict, total=False): """`git`'s time budget, forwarded by a helper that runs several git jobs.""" diff --git a/server/code/app/index/scip_full.py b/server/code/app/index/scip_full.py index bfe75b03991..ec6404e2e99 100644 --- a/server/code/app/index/scip_full.py +++ b/server/code/app/index/scip_full.py @@ -26,7 +26,6 @@ from server.code.app.index.untrusted_files import changed_while_read, open_regular from server.core.paths import SCIP_HARNESS_DIR from server.settings import settings -from server.workers import pass_context if TYPE_CHECKING: from server.code.domain.index.repos import RepoConfig @@ -83,12 +82,7 @@ async def move_checkout(checkout: Path, bare: Path, target: str, cfg: RepoConfig the whole move rather than a hand-counted part of it. The timeout is the one the pass was admitted with (`pass_context.git_fetch_timeout_s`), read once for every step: a runtime update during the move cannot outlast the pass deadline.""" - ctx = pass_context.current() - timeout_s = ( - ctx.git_fetch_timeout_s - if ctx is not None and ctx.git_fetch_timeout_s is not None - else settings.code_git_fetch_timeout_s - ) + timeout_s = compiler_tier.fetch_timeout_s() await compiler_tier.run_checkout_steps( checkout, compiler_tier.checkout_lead_steps(bare, target), diff --git a/server/code/workers/scip_go_delta.py b/server/code/workers/scip_go_delta.py index fda6318f97f..8cdf5c9a565 100644 --- a/server/code/workers/scip_go_delta.py +++ b/server/code/workers/scip_go_delta.py @@ -60,6 +60,7 @@ TierDegraded, checkout_fetch_args, compiler_target, + fetch_timeout_s, git, harness_failure, open_tier_delta, @@ -315,18 +316,19 @@ async def _run_repo(repo: CodeRepo, cfg: RepoConfig, result: CodeScipGoDeltaResu if missing: result.skipped.append(f"{cfg.namespace}: {missing}") return False + fetch_s = fetch_timeout_s() # one read for both steps await git( checkout, *checkout_fetch_args(bare, target), local_remote=bare, - timeout_s=settings.code_git_fetch_timeout_s, + timeout_s=fetch_s, ) await git( checkout, "checkout", "--force", target, - timeout_s=settings.code_git_fetch_timeout_s, + timeout_s=fetch_s, ) retry = await _known_retry(repo, cfg, checkout, retry) diff --git a/server/code/workers/scip_py_delta.py b/server/code/workers/scip_py_delta.py index 6387f04f089..ee7498de2e3 100644 --- a/server/code/workers/scip_py_delta.py +++ b/server/code/workers/scip_py_delta.py @@ -30,6 +30,7 @@ from server.code.app.index.compiler_tier import ( checkout_fetch_args, compiler_target, + fetch_timeout_s, git, gone_documents, harness_failure, @@ -101,18 +102,19 @@ async def _run_repo(repo: CodeRepo, cfg: RepoConfig, result: CodeScipPyDeltaResu if missing: result.skipped.append(f"{cfg.namespace}: {missing}") return + fetch_s = fetch_timeout_s() # one read for both steps await git( checkout, *checkout_fetch_args(bare, target), local_remote=bare, - timeout_s=settings.code_git_fetch_timeout_s, + timeout_s=fetch_s, ) await git( checkout, "checkout", "--force", target, - timeout_s=settings.code_git_fetch_timeout_s, + timeout_s=fetch_s, ) with tempfile.TemporaryDirectory(prefix="scip_py_delta_") as tmp: delta_path = Path(tmp) / "delta.json" diff --git a/server/code/workers/scip_ts_delta.py b/server/code/workers/scip_ts_delta.py index 85facb6b8ae..af0a5b34b83 100644 --- a/server/code/workers/scip_ts_delta.py +++ b/server/code/workers/scip_ts_delta.py @@ -38,6 +38,7 @@ from server.code.app.index.compiler_tier import ( checkout_fetch_args, compiler_target, + fetch_timeout_s, git, gone_documents, harness_failure, @@ -121,18 +122,19 @@ async def _run_repo(repo: CodeRepo, cfg: RepoConfig, result: CodeScipTsDeltaResu if missing: result.skipped.append(f"{cfg.namespace}: {missing}") return + fetch_s = fetch_timeout_s() # one read for both steps await git( checkout, *checkout_fetch_args(bare, target), local_remote=bare, - timeout_s=settings.code_git_fetch_timeout_s, + timeout_s=fetch_s, ) await git( checkout, "checkout", "--force", target, - timeout_s=settings.code_git_fetch_timeout_s, + timeout_s=fetch_s, ) lockfile_changed = bool(scip_commit and await _lockfile_changed(checkout, scip_commit, target)) if lockfile_changed: diff --git a/tests/unit/test_worker_pass_deadline.py b/tests/unit/test_worker_pass_deadline.py index 2a053b3e2b3..edc55d821a2 100644 --- a/tests/unit/test_worker_pass_deadline.py +++ b/tests/unit/test_worker_pass_deadline.py @@ -201,6 +201,30 @@ async def _pass() -> None: genai.set_identity() +async def test_the_fetch_timeout_is_the_admitted_one_inside_a_pass_and_live_outside( + emitter: _Emitter, monkeypatch: pytest.MonkeyPatch +) -> None: + from server.code.app.index.compiler_tier import fetch_timeout_s + from server.settings import settings + + monkeypatch.setattr(settings, "code_git_fetch_timeout_s", 7.0) + assert fetch_timeout_s() == 7.0 + seen: list[float] = [] + calls = {"n": 0} + + async def _pass() -> None: + calls["n"] += 1 + monkeypatch.setattr(settings, "code_git_fetch_timeout_s", 9.0) + seen.append(fetch_timeout_s()) + + spec = WorkerSpec("fetch_probe", 1.0, _pass, max_pass_seconds=5.0, git_fetch_budgets=1) + genai.set_identity() + await asyncio.wait_for(_supervisor(1, calls)._supervise(spec), timeout=5) + assert seen == [7.0] + assert fetch_timeout_s() == 9.0 + genai.set_identity() + + async def test_a_pass_past_its_deadline_is_a_counted_failure(emitter: _Emitter) -> None: calls = {"n": 0} From 719cb51349b6e4cd5688642d381f670404597eaa Mon Sep 17 00:00:00 2001 From: Kaloyan Naumov Date: Sat, 5 Dec 2026 02:02:12 +0000 Subject: [PATCH 13/13] Mark the checkout retry count as not a setting test_no_new_tunable_constant lists every numeric module constant whose name reads as a tunable. CHECKOUT_MOVE_RETRIES is the retry count the pass deadline is priced at, a property of the move's command list, so it carries the not-a-setting marker the test reads. Assisted-by: Claude Code:claude-sonnet-5-5 Co-Authored-By: Claude Sonnet 5.5 Signed-off-by: Kaloyan Naumov --- server/code/app/index/compiler_tier.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/code/app/index/compiler_tier.py b/server/code/app/index/compiler_tier.py index ff760c38025..1f9834339b6 100644 --- a/server/code/app/index/compiler_tier.py +++ b/server/code/app/index/compiler_tier.py @@ -693,7 +693,7 @@ class GitStep(NamedTuple): # How many times `git` runs a timed-out step again, so one step is up to # `1 + CHECKOUT_MOVE_RETRIES` attempts. -CHECKOUT_MOVE_RETRIES = 1 +CHECKOUT_MOVE_RETRIES = 1 # not a setting: the retry count the pass deadline is priced at def checkout_lead_steps(bare: Path, target: str) -> tuple[GitStep, ...]: