Prefect

Latest version: v2.82

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

Scan your dependencies

Page 3 of 44

2.16.8

Fixes

- Disable CSRF protection by default - https://github.com/PrefectHQ/prefect/pull/12479
- Fix issue that caused UI to not be built when creating docker images - https://github.com/PrefectHQ/prefect/pull/12481

2.16.7

๐Ÿ’ป Introducing `prefect shell` for observing CLI commands
You can now observe CLI commands as a Prefect flow. For example:
python
ยป prefect shell watch "curl http://wttr.in/Chicago?format=3"

2.16.6

Fix new behavior in `typer 0.10.0` that broke the `prefect` CLI
See the following pull request for implementation details:
- Handle new `typer.Option` behavior โ€” https://github.com/PrefectHQ/prefect/pull/12398

**All changes**: https://github.com/PrefectHQ/prefect/compare/2.16.5...2.16.6

2.16.5

Multi-select deletion of flow runs
It is now easier to bulk select and delete flow runs through the UI. Listings of filterable and selectable flow runs (e.g. on the flow runs, flow, and deployment pages) now include a top-level checkbox for (de)selecting all currently filtered flow runs for bulk deletion.

![image](https://github.com/PrefectHQ/prefect/assets/42048900/2431caf4-c1be-4afd-bcff-3c24fa94dc64)

See the following pull request for implementation details:
- https://github.com/PrefectHQ/prefect/pull/12356
- https://github.com/PrefectHQ/prefect-ui-library/pull/2227
- https://github.com/PrefectHQ/prefect/pull/12285

Visualize state changes and artifacts in the UI
Additionally, the flow run graph UI enhancements for visualizing state changes and artifacts added in 2.16.4 are now enabled by default. See [the release notes in 2.16.4 for more details](https://github.com/PrefectHQ/prefect/blob/main/RELEASE-NOTES.md#release-2164)!

**Full Changelog:** https://github.com/PrefectHQ/prefect/compare/2.16.4...2.16.5

---

See the [release notes](https://github.com/PrefectHQ/prefect/blob/main/RELEASE-NOTES.md#release-2165) for more!

2.16.4

Flow Run Graph updates

The Flow Run Graph has been updated to display additional layers of information! Interactive and real-time state changes and artifacts are now visible in context on the graph.

<img width="892" alt="The Prefect flow run graph" src="https://github.com/PrefectHQ/prefect/assets/6776415/422a878e-f8bc-46b5-ae76-830f24861aaf">

These new layers are available for opt-in usage via the `PREFECT_EXPERIMENTAL_ENABLE_ARTIFACTS_ON_FLOW_RUN_GRAPH` and `PREFECT_EXPERIMENTAL_ENABLE_STATES_ON_FLOW_RUN_GRAPH` settings.

Agents

A year ago, we released workers as a replacement for agents. Workers significantly enhance the experience of deploying flows and simplify the specification of each flow's infrastructure and runtime environment.

With this release we are adding a six month (September 14) deprecation warning to agents and related concepts. Please note that:

- Deprecation will not impact or break any work running with agents and agent-related concepts - although we encourage users to upgrade to workers because they provide a better deployment experience, you can continue to use existing agents and related concepts after deprecation
- After September 14, Prefect Cloud users will not be able to create new agent work pools or infrastructure blocks
- After September 14, new minor versions of the Prefect Python package will not include agents

Like agents, workers support creating deployments through the Prefect CLI and through Python, but require different syntax. For more information, please refer to the [Upgrade from Agents to Workers](https://docs.prefect.io/latest/guides/upgrade-guide-agents-to-workers/) guide.

Enhancements
* Give better client-side feedback on websocket authT/authZ issues - https://github.com/PrefectHQ/prefect/pull/12221
* Allow table artifact cells to render markdown content - [`2190`](https://github.com/PrefectHQ/prefect-ui-library/pull/2190)
* Add an 'AzureBlobStorageContainer' block - [`139`](https://github.com/PrefectHQ/prefect-azure/pull/139)
* API for task run counts by state - https://github.com/PrefectHQ/prefect/pull/12244
* Improved UI handling of custom flow run states. Badges for a state with a custom name will now more closely resemble their underlying state - https://github.com/PrefectHQ/prefect-ui-library/pull/2210 and https://github.com/PrefectHQ/prefect-ui-library/pull/2208
Fixes
* Fix support for legacy schedule in `build_from_flow` - https://github.com/PrefectHQ/prefect/pull/12257
* Remove extra field from create endpoints - https://github.com/PrefectHQ/prefect/pull/12240
* Prevent invalid link problem for `prefect deployment run` - https://github.com/PrefectHQ/prefect/pull/12267
* Hydrate run input when resuming a flow run - https://github.com/PrefectHQ/prefect/pull/12259
* Fix state select in notifications [`2216`](https://github.com/PrefectHQ/prefect-ui-library/pull/2216)
* Adds porting of network configuration to generated base job templates [`392`](https://github.com/PrefectHQ/prefect-aws/pull/392)
Experimental
* Expose `serve` method on tasks - https://github.com/PrefectHQ/prefect/pull/12239
* Avoid relative module path problem with subscription keys - https://github.com/PrefectHQ/prefect/pull/12227
Deprecations
* Deprecate `PrefectAgent` and `prefect agent` command group - https://github.com/PrefectHQ/prefect/pull/12273
* Deprecate Infrastructrue blocks - https://github.com/PrefectHQ/prefect/pull/12282
* Deprecate `Deployment` class and deployment `build` and `apply` commands - https://github.com/PrefectHQ/prefect/pull/12283
* Deprecate the `packaging` module - https://github.com/PrefectHQ/prefect/pull/12291
* Deprecate storage blocks with implementations in Prefect integration packages - https://github.com/PrefectHQ/prefect/pull/12299
* Do not create `default-agent-pool` in empty state server - https://github.com/PrefectHQ/prefect/pull/12214
Typing
* Refactor: Inject Client - https://github.com/PrefectHQ/prefect/pull/12258
* Fix: Variables methods type-hinting - https://github.com/PrefectHQ/prefect/pull/12278
Documentation
* Fix formatting in concept -> work-pools.md - https://github.com/PrefectHQ/prefect/pull/12230
* Add `get_run_logger` to imports in interactive workflow examples - https://github.com/PrefectHQ/prefect/pull/12284
* Add `on_running` state change hook to State -> Concepts docs - https://github.com/PrefectHQ/prefect/pull/12293
* Fix some argument names in deploy guide - https://github.com/PrefectHQ/prefect/pull/12301


New Contributors

- hainenber made their first contribution in https://github.com/PrefectHQ/prefect/pull/12232

**Full Changelog**: https://github.com/PrefectHQ/prefect/compare/2.16.3...2.16.4

2.16.3

This release includes enhanced deployment parameters in the Prefect UI. Weโ€™ve refined the deployment parameters UI to significantly enhance default value handling and list management.

๐Ÿ› ๏ธ This release introduces support for tuple-type parameters and a revamped list UI, freeing users from the constraints of JSON for list inputs.

๐Ÿ”„ You now have the flexibility to utilize JSON or Prefect variables for any parameter value, enhancing the versatility of deployment configurations.

๐Ÿ’ช Moreover, weโ€™ve synchronized validation across the UI and deployment schemas, ensuring that user inputs are consistently checked against the defined parameter requirements, which simplifies the deployment process and minimizes configuration errors.

โœ… These improvements are aimed at providing a more efficient and user-friendly interface for managing deployment parameters. ๐ŸŒŸ

<img width="791" alt="paramsui" src="https://github.com/PrefectHQ/prefect/assets/42048900/d95c854f-1b95-46fb-8214-9132c923214f">

This release also includes many other enhancements and fixes, including a new `on_running` state change hook ๐ŸŽฃ, two memory leak fixes ๐Ÿ”ง, and much more.

See the [release notes](https://github.com/PrefectHQ/prefect/blob/main/RELEASE-NOTES.md#release-2163) for details! ๐Ÿ“œ๐Ÿš€

Page 3 of 44

Links

Releases

Has known vulnerabilities

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