3.0.3: Cache Rules Everything Around Me
This release introduces improvements to cache policy configuration, offering developers more control and flexibility in managing task result caching:
- Customizable Storage Location: Specify where cache entries are stored using the
key_storage
parameter. - Configurable Isolation Level: Set the isolation level for cache access with the
isolation_level
parameter. - Locking Mechanism: Implement concurrent access control using the
lock_manager
parameter.
These enhancements allow for more sophisticated caching strategies, improving performance and resource management in complex workflows.
To learn more about these changes, check out the task caching docs.
New Features 🎉
- Add
key_storage
,isolation_level
andlock_manager
configuration to cache policies by @desertaxle in #15382
Enhancements ➕➕
- Adds settings to control server CORS configuration by @desertaxle in #15396
- Add ability to specify
ConcurrencyOptions
by @jeanluciano in #15291 - Add
concurrency_limit
field toflow.serve
by @jeanluciano in #15376 - Allow a rich object to be passed to
concurrency_limit
in client methods by @jeanluciano in #15425 - Add support for insecure webhooks by @westford14 in #15402
- Improve deployment concurrency GCL management by @collincchoy in #15426
Bug Fixes 🐞
- Preserve
flow.name
withRunnerDeployment.from_storage
by @zzstoatzz in #15393 - Lazy import
ray
to fix server startup issues by @desertaxle in #15392 - Handle unnamed lambdas for consistency by @zzstoatzz in #15400
- Fix task linking by @desertaxle in #15418
- Fix ephemeral server start command for Windows by @desertaxle in #15421
- Fix task run count when a task is configured with
retry_delay_seconds
by @desertaxle in #15424 - Fix bug where task cache storage is misconfigured by @desertaxle in #15433
- Update task engine to increment
run_count
when enteringRUNNING
state by @desertaxle in #15436
Integrations & Dependencies 🤝
- Add environment variables from GCP secrets to cloud run job v2 workers by @Ultramann in #15423
- Prepare
prefect-redis
for0.2.0
release by @desertaxle in #15409 - Add
AzureBlobStorageContainer.list_blobs
method by @westford14 in #15390 - Add
oracledb
driver support inprefect-sqlalchemy
by @Ben-Taarit in #15385
Development & Tidiness 🧹
- Add docs for configuring storage and isolation for cache policies by @desertaxle in #15397
- Improve type hinting docs for sync_compatible by @benjamincerigo in #15327
- Refactors
__add__
and__sub__
on cache policies by @desertaxle in #15379 - Add
mypy
type checking to/models
by @bunchesofdonald in #15062 - Only load collections once by @abrookins in #15344
- Bump vue from 3.5.4 to 3.5.5 in /ui by @dependabot in #15386
- Bump typescript from 5.5.4 to 5.6.2 in /ui by @dependabot in #15387
- Bump tailwindcss from 3.4.10 to 3.4.11 in /ui by @dependabot in #15388
- Bump vite from 5.4.2 to 5.4.5 in /ui by @dependabot in #15372
- Bump vue-router from 4.4.3 to 4.4.5 in /ui by @dependabot in #15389
- Update @prefecthq/prefect-ui-library to version 3.9.5 by @marvin-robot in #15411
- Bump vite from 5.4.5 to 5.4.6 in /ui by @dependabot in #15410
- Update @prefecthq/prefect-ui-library to version 3.10.0 by @marvin-robot in #15419
New Contributors
- @benjamincerigo made their first contribution in #15327
- @Ben-Taarit made their first contribution in #15385
- @westford14 made their first contribution in #15390
- @Ultramann made their first contribution in #15423
Full Changelog: 3.0.2...3.0.3