Commits
Click on a commit to change the comparison rangeAdd arun_deployment and replace sync_compatible with async_dispatch
This change follows the intent of issue #15008 to replace implicit
sync/async conversion with explicit, type-safe alternatives.
Changes:
- Add `arun_deployment` as an explicit async function for running deployments
- Replace `@sync_compatible` with `@async_dispatch` on `run_deployment`
- `run_deployment` now dispatches to `arun_deployment` in async context
- Sync context uses `SyncPrefectClient` directly (no event loop magic)
- Export `arun_deployment` from `prefect.deployments`
- Add comprehensive tests for both sync and async behavior
The `run_deployment.aio` attribute is preserved for backward compatibility.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>23 hours ago
by desertaxle Merge branch 'main' into add-arun-deployment-async-dispatch22 hours ago
by desertaxle