Migrate resume_flow_run from sync_compatible to async_dispatch
#19792
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.
This PR migrates
resume_flow_runfrom the@sync_compatibledecorator to the@async_dispatchpattern, following the approach established in #19632.Changes:
aresume_flow_runas the explicit async implementationresume_flow_runto a sync function decorated with@async_dispatch(aresume_flow_run)aresume_flow_runfrommain.pyand__init__.pyflow_run.stateandresponse.statefor robustness (previously would raise AttributeError if state was None)Review notes:
Closes #15008 (partial - this is one function in the incremental migration)
Link to Devin run: https://app.devin.ai/sessions/b9cefdf38a744dfd8403c97230ef5cd1
Requested by: Nate Nowack ([email protected]) / @zzstoatzz
Checklist
<link to issue>"mint.json.