Skip to content

Fix async step persistence for synchronous actions - #895

Open
Eilen6316 wants to merge 2 commits into
apache:mainfrom
Eilen6316:fix/astep-sync-persistence-state
Open

Fix async step persistence for synchronous actions#895
Eilen6316 wants to merge 2 commits into
apache:mainfrom
Eilen6316:fix/astep-sync-persistence-state

Conversation

@Eilen6316

Copy link
Copy Markdown

Summary

When Application.astep() executes a synchronous action, it now forwards the action result and updated state returned by _step() to the async post-step hooks.

This prevents async persisters from saving the pre-step state as completed and ensures lifecycle hooks observe the actual result and state.

Testing

  • tests/core/test_application.py: 138 passed
  • tests/core excluding optional Graphviz display tests: 390 passed
  • flake8 burr/core/application.py tests/core/test_application.py

The two Graphviz display tests require the optional graphviz Python package, which is not installed in the test environment.

@github-actions github-actions Bot added the area/core Application, State, Graph, Actions label Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/core Application, State, Graph, Actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant