Prefect v2.3.0 Release Notes
-
Exciting New Features π
- β Add support for deploying flows stored in Docker images β #6574
- β Add support for deploying flows stored on GitHub β #6598
- β Add file system block for reading directories from GitHub β #6517
- β Add a context manager to disable the flow and task run loggers for testing β #6575
- β Add task run pages to the UI β #6570
β¨ Enhancements
- β Add "cloud" to
prefect version
server type display β #6523 - π Use the parent flow run client for child flow runs if available β #6526
- β Add display of Prefect version when starting agent β #6545
- β Add type hints to state predicates, e.g.
is_completed()
β #6561 - β Add error when sync compatible methods are used incorrectly β #6565
- π Improve performance of task run submission β #6527
- π Improve performance of flow run serialization for
/flow_runs/filter
endpoint β #6553 - β Add field to states with untrackable dependencies due to result types β #6472
- β‘οΈ Update
Task.map
iterable detection to exclude strings and bytes β #6582 - β Add a version attribute to the block schema model β #6491
- β Add better error handling in the telemetry service β #6124
- β‘οΈ Update the Docker entrypoint display for the Prefect image β #655
- β Add a block creation link toΒ
prefect block type ls
β #6493 - π Allow customization of notifications of queued flow runs β #6538
- Avoid duplicate saves of storage blocks as anonymous blocks β #6550
- β Remove save of agent default infrastructure blocks β #6550
- β Add aΒ
--skip-upload
Β flag toΒprefect deployment build
Β β #6560 - β Add a
--upload
flag toprefect deployment apply
β #6560 - β Add the ability to specify relative sub-paths when working with remote storage for deployments β #6518
- Prevent non-UUID slugs from raising errors on
/block_document
endpoints β #6541 π Improve Docker image tag parsing to support the full Moby specification β #6564
π Fixes
Set uvicorn
--app-dir
when starting Orion to avoid module collisions β #6547π Resolve issue with Python-based deployments having incorrect entrypoint paths β #6554
π Fix Docker image tag parsing when ports are included β #6567
β‘οΈ Update Kubernetes Job to use
args
instead ofcommand
to respect image entrypoints β #6581- Warning: If you are using a custom image with an entrypoint that does not allow passthrough of commands, flow runs will fail.
π Fix edge case in
sync_compatible
detection when using AnyIO task groups β #6602β Add check for infrastructure and storage block capabilities during deployment build β #6535
π Fix issue where deprecated work queue pages showed multiple deprecation notices β #6531
π Fix path issues with
RemoteFileSystem
and Windows β #6620Fix a bug where
RemoteFileSystem.put_directory
did not respectlocal_path
β #6620
π Documentation
- β Add tutorials for creating and using storage and infrastructure blocks β #6608
- β‘οΈ Update tutorial for running flows in Docker β #6612
- β Add example of calling a task from a task β #6501
- π Update database documentation for Postgres to clarify required plugins β #6566
- β Add example of using
Task.map
in docstring β #6579 - β Add details about flow run retention policies β #6577
- π Fix flow parameter name docstring in deployments β #6599
Contributors
Thanks to our external contributors!
- @darrida
- @jmg-duarte
- @MSSandroid