Commits
Click on a commit to change the comparison rangeMigrate pause_flow_run and suspend_flow_run from @sync_compatible to @async_dispatch
Part of #15008: Synchronous and asynchronous compatibility within Prefect
- Create apause_flow_run async function with @async_dispatch pattern
- Create asuspend_flow_run async function with @async_dispatch pattern
- Replace @sync_compatible with @async_dispatch on sync versions
- Update exports in main.py and __init__.py
- Add tests for async dispatch behavior
Co-Authored-By: Nate Nowack <nate@prefect.io>12 hours ago
by devin-ai-integration[bot] Move _in_process_pause from MOVED_IN_V3 to REMOVED_IN_V3
The _in_process_pause helper function was removed and its logic inlined
into apause_flow_run. Update migration.py to mark it as removed instead
of moved, with a message directing users to use pause_flow_run instead.
Co-Authored-By: Nate Nowack <nate@prefect.io>12 hours ago
by devin-ai-integration[bot] Fix wait_for_input handling in sync pause_flow_run and suspend_flow_run
Replace placeholder pass statements with actual calls to wait_for_input.load()
and wait_for_input.save(). These methods are decorated with @sync_compatible
so they can be called synchronously.
Co-Authored-By: Nate Nowack <nate@prefect.io>10 hours ago
by devin-ai-integration[bot] Replace @sync_compatible method calls with direct sync implementations
Instead of calling wait_for_input.load() and wait_for_input.save() which
use @sync_compatible, create helper functions _load_input_sync() and
_save_input_schema_sync() that use the sync versions of the underlying
functions (read_flow_run_input and create_flow_run_input) directly.
This addresses the feedback that the point of issue 15008 is to remove
@sync_compatible, so we shouldn't rely on methods that use it.
Co-Authored-By: Nate Nowack <nate@prefect.io>6 hours ago
by devin-ai-integration[bot] Move ensure_flow_run_id import to top-level
Avoid unnecessary deferred import in _load_input_sync function.
Co-Authored-By: Nate Nowack <nate@prefect.io>6 hours ago
by devin-ai-integration[bot]