Make eager activity reservation limit configurable#1674
Open
Sushisource wants to merge 4 commits into
Open
Conversation
Sushisource
force-pushed
the
eager-activity-slot-limit
branch
from
July 24, 2026 23:23
5cfdf0c to
260c33e
Compare
Sushisource
marked this pull request as ready for review
July 24, 2026 23:24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
max_eager_activity_reservations_per_workflow_tasktoWorkerand its configuration types.disable_eager_activity_execution=Trueto disable eager execution.Why
Core already caps the number of slots it attempts to reserve for eager activities while completing a workflow task. This exposes that existing cap to Python users without introducing a separate execution-lifetime limit.
Validation
poe formatpoe build-developpoe bridge-lintuv run pytest tests/worker/test_worker.py::test_worker_max_eager_activity_reservations_per_workflow_task_config tests/worker/test_worker.py::test_worker_rejects_non_positive_max_eager_activity_reservations -qThe broad lint/test collection additionally requires optional contrib dependencies that are not installed in this workspace. No breaking changes; the default remains three.