Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: make run_step return all the events produced by a step #18082

Merged
merged 8 commits into from
Mar 13, 2025

Conversation

masci
Copy link
Member

@masci masci commented Mar 10, 2025

Description

Previously, run_step would return only the event produced by steps in their return value. But events can also be produced using the send_event method of the Context, and those were ignored during stepwise execution. This PR fixes that issue.

Note: I had to change the return type of run_step from a single event to a list of events, which is consistent with what the method is supposed to do: returning all the events that were produced in the step. While technically this is a breaking change, since the previous version couldn't work I propose we roll out this change as a bugfix instead.

Follow-up of #17898

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Mar 10, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Mar 13, 2025
@logan-markewich logan-markewich merged commit b7e91a0 into main Mar 13, 2025
11 checks passed
@logan-markewich logan-markewich deleted the massi/stepwise-send_event branch March 13, 2025 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants