Repository navigation
Python: discard pending State on failed/cancelled superstep (#7859) #8306
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
Changes from all commits
6f7973d
7cacb8a
0dad1f9
ad6a77e
8dcbb9e
3bff1df
07c4334
88db6fa
8e0f36c
efb2156
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -206,6 +206,9 @@ async def handle_action( | |
|
|
||
| # Non-success path: still publish headers diagnostically, then raise. | ||
| self._assign_response_headers(state, result) | ||
| # Runner discards pending State when the superstep fails (#7859 / #8306). | ||
| # Commit first so diagnostic headers remain readable after the error. | ||
| state.commit() | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. LI (@ktz03), |
||
| raise DeclarativeActionError(f"HTTP request to '{url}' failed with status code {result.status_code}.") | ||
|
|
||
| # ----- Field resolution ---------------------------------------------------- | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.