Skip to content

Commit ae1846b

Browse files
baogorekclaude
andcommitted
Fix ModuleNotFoundError: inline generate_run_id to avoid policyengine_us_data import
The lazy import from policyengine_us_data.utils.run_id triggers the full package __init__ chain (which needs policyengine_core), but the orchestrator runs outside the uv venv. Inline the trivial timestamp logic instead. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent f042204 commit ae1846b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

modal_app/pipeline.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,8 @@ def from_dict(cls, data: dict) -> "RunMetadata":
100100

101101

102102
def generate_run_id(version: str, sha: str) -> str:
103-
from policyengine_us_data.utils.run_id import generate_run_id as _gen
104-
105-
return _gen(version, sha)
103+
ts = datetime.now(timezone.utc).strftime("%Y%m%d_%H%M%S")
104+
return f"{version}_{sha[:8]}_{ts}"
106105

107106

108107
def write_run_meta(

0 commit comments

Comments
 (0)