Migrate resume_flow_run from sync_compatible to async_dispatch
This change follows the pattern established in PR #19632 to migrate
resume_flow_run from the @sync_compatible decorator to the @async_dispatch
pattern.
Changes:
- Create aresume_flow_run as the explicit async implementation
- Create resume_flow_run as the sync implementation with @async_dispatch
- Export aresume_flow_run from main.py and __init__.py
- Add tests for both sync and async code paths
- Add None checks for flow_run.state and response.state for robustness
Related to #15008
Co-Authored-By: Nate Nowack <nate@prefect.io>
fix: correct docket_url setting path to server.docket.url
The setting was incorrectly referenced as server.docket_url but the actual
path is server.docket.url (nested under ServerDocketSettings).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
fix: exclude unset grace_period_seconds from deployment concurrency_options
When creating a deployment with concurrency_limit in prefect.yaml without
specifying grace_period_seconds, the API returns a 422 error because
grace_period_seconds: null is included in the payload.
This fix serializes concurrency_options with exclude_unset=True so that
fields with default values (like grace_period_seconds) are not included
when not explicitly set.
Closes #19778
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>