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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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