Prefect

Latest version: v3.3.1

Safety actively analyzes 723177 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 36 of 80

2.19.9

Not secure
This PR continues Prefect's 2.0 lineage as we prepare for a [major 3.0 release](https://github.com/PrefectHQ/prefect/milestone/18). This release is particularly special with respect to 3.0 as it adds warnings to APIs or interfaces that will need updating in 3.0.

There are many internal APIs in Prefect that can be run both synchronously and asynchronously depending on the runtime context in which they are called. If you've ever encountered the error `AttributeError: 'coroutine' object has no attribute` when loading a `Block` then you know what I'm referring to. In 3.0 we have updated the internal logic for switching between synchronous/asynchronous modes in an attempt to provide clearer guidelines and improved performance.

If you ever encounter such an error, you can now use the special `_sync` keyword argument to explicitly enforce the mode of execution you'd prefer:
python
my_block = Block.load("example/block", _sync=True)

my_block = await Block.load("example/block", _sync=False)

When this kwarg is not provided, Prefect makes an educated guess as to whether a coroutine should be returned to await or whether to run the logic synchronously on your behalf.

New Features ๐ŸŽ‰
* Add `container_create_kwargs` to Docker worker by kevingrismore in https://github.com/PrefectHQ/prefect/pull/14693
* Expose schema validation flag on deployment flow run create by cicdw in https://github.com/PrefectHQ/prefect/pull/14715
* Backport _sync kwarg to 2.x by cicdw in https://github.com/PrefectHQ/prefect/pull/14725
* Removal 3 warnings by WillRaphaelson in https://github.com/PrefectHQ/prefect/pull/14675
Bug Fixes ๐Ÿž
* fix task key comp for 2.x by zzstoatzz in https://github.com/PrefectHQ/prefect/pull/14707
* Migrates to Kubernetes_asyncio for prefect 2.X by jeanluciano in https://github.com/PrefectHQ/prefect/pull/14570
* Fix runtime case for `load_flow_from_entrypoint` in 2.x by zzstoatzz in https://github.com/PrefectHQ/prefect/pull/14669
Development & Tidiness ๐Ÿงน
* Remove spurious UI change in release notes. by bunchesofdonald in https://github.com/PrefectHQ/prefect/pull/14566
* Update github auto-release notes template by cicdw in https://github.com/PrefectHQ/prefect/pull/14762
* silence `PrefectDeprecationWarning` in tests by zzstoatzz in https://github.com/PrefectHQ/prefect/pull/14708

**Full Changelog**: https://github.com/PrefectHQ/prefect/compare/2.19.8...2.19.9

2.19.8

Not secure
Enhancements
- Allow loading flows from an entrypoint when dependencies are missing โ€” https://github.com/PrefectHQ/prefect/pull/14548

Fixes
- Handle join edge case in `ParameterTypeError.from_validation_error` โ€” https://github.com/PrefectHQ/prefect/pull/14420
- Respect `--ui/--no-ui` flag on `prefect server start` โ€” https://github.com/PrefectHQ/prefect/pull/14520
- Append task run futures only when entering task run engine from flow run context โ€” https://github.com/PrefectHQ/prefect/pull/14439

Integrations
- Depend on Cloud Run Execution state for timeout enforcement 2.x โ€” https://github.com/PrefectHQ/prefect/pull/14554
- Handle case where `AwsClientParameters` is a `dict` โ€” https://github.com/PrefectHQ/prefect/pull/14438
- Added `print_func` for `run_namespaced_job` โ€” https://github.com/PrefectHQ/prefect/pull/14463
- Use correct paths in `GcsBucket.put/get_directory` โ€” https://github.com/PrefectHQ/prefect/pull/14537
- Cache Kubernetes client โ€” https://github.com/PrefectHQ/prefect/pull/14535

New Contributors
* oaustegard made their first contribution in https://github.com/PrefectHQ/prefect/pull/14505

2.19.7

Not secure
Fixes
- Fix bug where assignments inside functions are evaluated when running `prefect deploy` - https://github.com/PrefectHQ/prefect/pull/14403
- Allow `uvicorn>0.29.0` - https://github.com/PrefectHQ/prefect/pull/14370

Documentation
- Add Prefect 3 announcement bar to 2.x docs - https://github.com/PrefectHQ/prefect/pull/14248
- Update Prefect intro in 2.19.x docs - https://github.com/PrefectHQ/prefect/pull/14376
- Update docs edit pencil icon link to route to `2.x` branch in GitHub - https://github.com/PrefectHQ/prefect/pull/14378

**All changes**: https://github.com/PrefectHQ/prefect/compare/2.19.6...2.19.7

2.19.6

Not secure
Enhancements
- Enable deploying from local paths with `Flow.deploy` - https://github.com/PrefectHQ/prefect/pull/13981

Fixes
- Fix `concurrency` timeout scoping - https://github.com/PrefectHQ/prefect/pull/14183
- Fix deployment and work queue statuses - https://github.com/PrefectHQ/prefect/pull/14097
* Fix resolution of block documents in `job_variables` in a `prefect.yaml` before saving server-side - https://github.com/PrefectHQ/prefect/pull/14156

Documentation
- Fix typo in Cloud Run V2 worker navigation link - https://github.com/PrefectHQ/prefect/pull/14170


**Full Changelog**: https://github.com/PrefectHQ/prefect/compare/2.19.5...2.19.6

2.19.5

Not secure
Fixes
- Fix `prefect deploy` when using dynamic `flow` parameters - https://github.com/PrefectHQ/prefect/pull/13991
- Fix `prefect deploy` to prevent code execution inside main guard - https://github.com/PrefectHQ/prefect/pull/14004
- Fix typing on `GlobalConcurrencyLimitUpdate` - https://github.com/PrefectHQ/prefect/pull/14006

Integrations
- Restore `jobs_runs_submit_by_id_and_wait_for_completion` to `prefect-databricks` - https://github.com/PrefectHQ/prefect/pull/13957

Documentation
- Fix formatting in automations concept docs - https://github.com/PrefectHQ/prefect/pull/13962

**All changes**: https://github.com/PrefectHQ/prefect/compare/2.19.4...2.19.5

2.19.4

Not secure
Fixes
- Fix `Could not find flow '[...]' in '[...].py'` errors when using `prefect deploy` to deploy async flows - https://github.com/PrefectHQ/prefect/pull/13769
- Fix parameter schema generation for flows with positional only and keyword only arguments when using `prefect deploy` - https://github.com/PrefectHQ/prefect/pull/13778
- Fix use of dynamic models in flow typing when using `prefect deploy` - https://github.com/PrefectHQ/prefect/pull/13781
- Allow clients to provide task run ID during creation to enable compatibility between 2.x servers and 3.0.0rc clients - https://github.com/PrefectHQ/prefect/pull/13683

Documentation
- Add Docker deployment steps page to centralized integration docs - https://github.com/PrefectHQ/prefect/pull/13720

**All changes**: https://github.com/PrefectHQ/prefect/compare/2.19.3...2.19.4

Page 36 of 80

Links

Releases

Has known vulnerabilities

ยฉ 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.