3.1.6: list[type[Improvements]]
This release begins a concerted effort to improve our public interface's type completeness; we hope that this will make the experience of authoring Prefect flows within IDEs more robust and allow for better autocomplete. We welcome all contributions to this effort - follow along with this issue to get involved!
Enhancements ➕➕
- expose
job_variables
inruntime.flow_run
by @zzstoatzz in #16124 - Add
aserve
utility for serving multiple flows from an asynchronous context by @GitAlexxx in #15972 - Add work-pool id/name to labels donated by worker to flow run by @bunchesofdonald in #16252
- Raise informative errors when failing to bootstrap telemetry by @bunchesofdonald in #16253
- remove
sync_compatible
frombuild_server
by @zzstoatzz in #16314
Bug Fixes 🐞
- Fix setting task states with duplicate timestamps by @GalLadislav in #16145
- fix
__getattr__
conflict inprefect.docker.__init__
by @zzstoatzz in #16172 - Fix result store serialization to include all necessary attributes by @desertaxle in #16189
- Support flow deletion in Prefect Python client by @paulusaptus in #16308
Integrations & Dependencies 🤝
- bump required minor versions of core by @zzstoatzz in #16192
- Instrument task runs by @jeanluciano in #15955
Development & Tidiness 🧹
- clean up repo root by @zzstoatzz in #16177
- rm discourse references by @zzstoatzz in #16176
- limit event name length by @zzstoatzz in #16097
- Add
from_profiles_yml
to dbtTargetConfigs
by @kevingrismore in #16178 - Rename
prefect.server.database.migrations
toprefect.server.database._migrations
by @desertaxle in #16214 - Improve typing completeness of internal base models by @desertaxle in #16217
- update typing in
blocks.abstract
andconcurrency
by @zzstoatzz in #16212 - strict type client modules by @zzstoatzz in #16223
- Bring ORM models and Alembic migrations in sync by @mjpieters in #16221
- Include info about registering built-in blocks by @pypae in #16244
- Move UI pre-commit hooks from
husky
topre-commit
by @desertaxle in #16246 - make
flow
andtask
decorators pass strict typing by @zzstoatzz in #16251 - use
uv
to install dependencies in theDockerfile
by @zzstoatzz in #16235 - fruitful typing scouring by @zzstoatzz in #16255
- [typing] prefect.client by @mjpieters in #16265
- OTEL flow run context propagation with Labels by @jeanluciano in #16122
- Link Docker build
NODE_VERSION
to.nvmrc
by @desertaxle in #16282 - fix typing and route in flow run logs download api ref by @zzstoatzz in #16281
- avoiding timing issue in flaky test by @zzstoatzz in #16275
- Add a new tutorial which shows how to debug a failing pipeline by @daniel-prefect in #16225
- Adds note to rate limits doc linking to client settings by @EmilRex in #16286
- [typing] fix typing related to
prefect.main
by @zzstoatzz in #16288 - 3.9 compat for
debug.mdx
tutorial by @zzstoatzz in #16296 - Include more helpful output in type completeness check by @desertaxle in #16327
- Temporarily disable passing worker labels to flow run by @jakekaplan in #16339
- Add type completeness check to CI by @desertaxle in #16194
- improve typing of variables.py by @aaazzam in #16216
- Use SQLAlchemy 2.0 style for ORM models, make typing complete by @mjpieters in #16230
- [typing] highlighters.py by @aaazzam in #16259
- [typing] Update migration.py by @aaazzam in #16261
efect/pull/16266 - [typing] Use correct type narrowing construct by @mjpieters in #16269
- [typing] prefect.utilities by @mjpieters in #16298
New Contributors
- @GitAlexxx made their first contribution in #15972
- @mjpieters made their first contribution in #16221
- @pypae made their first contribution in #16244
- @paulusaptus made their first contribution in #16308
Full Changelog: 3.1.5...3.1.6