Skip to content

Install FastAPI in simulation worker image#536

Merged
anth-volk merged 1 commit into
mainfrom
codex/fix-simulation-worker-fastapi
May 28, 2026
Merged

Install FastAPI in simulation worker image#536
anth-volk merged 1 commit into
mainfrom
codex/fix-simulation-worker-fastapi

Conversation

@anth-volk
Copy link
Copy Markdown
Contributor

Fixes #535

Summary

  • Add fastapi>=0.115.0 to the Modal simulation worker image so importing policyengine_api_simulation.* does not crash at container startup.
  • This should unblock both run_simulation and run_budget_window_batch, which were crash-looping on the same missing dependency.

Failed deploy evidence

Testing

  • uv run ruff format --check src/modal/app.py
  • uv run pytest tests/test_policyengine_dependency_source.py -q
  • uv run python -c "import src.modal.app; print(src.modal.app.APP_NAME)"

@anth-volk anth-volk marked this pull request as ready for review May 28, 2026 19:38
@anth-volk anth-volk merged commit 9a8c3fe into main May 28, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix simulation worker startup after PolicyEngine 4.12 deploy

1 participant