Prefect

Latest version: v3.1.5

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

Scan your dependencies

Page 20 of 60

2.16.6

Not secure
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

Not secure
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

Not secure
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

Not secure
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! 📜🚀

2.16.2

Not secure

2.16.1

Not secure
Enhanced multiple schedule support 📅

`prefect.yaml` now supports specifying multiple schedules via the `schedules` key.

This allows you to define multiple schedules for a single deployment, and each schedule can have its own `cron`, `interval`, or `rrule` configuration:

yaml
...
schedules:
- cron: "0 0 * * *"
active: false
- interval: 3600
active: true
- rrule: "FREQ=YEARLY"
active: true


In addition you can specify multiple schedules via arguments to `prefect deploy`:

`prefect deploy ... --cron '4 * * * *' --cron '1 * * * *' --rrule 'FREQ=DAILY'`
<details>
<summary>More detail</summary>



We've also added support for multiple schedules to `flow.serve`, `flow.deploy` and `prefect.runner.serve`. You can provide multiple schedules by passing a list to the `cron`, `interval`, or `rrule` arguments:

python
import datetime
import random

from prefect import flow


flow
def trees():
tree = random.choice(["🌳", "🌴", "🌲", "🌵"])
print(f"Here's a happy little tree: {tree}")

if __name__ == "__main__":
trees.serve(
name="trees",
interval=[3600, 7200, 14400],
)


This will create a deployment with three schedules, one that runs every hour, one that runs every two hours, and one that runs every four hours. For more advanced cases, use the `schedules` argument.

python
trees.serve(
name="trees",
schedules=[
IntervalSchedule(interval=datetime.timedelta(minutes=30)),
{"schedule": RRuleSchedule(rrule="FREQ=YEARLY"), "active": True},
MinimalDeploymentSchedule(schedule=CronSchedule(cron="0 0 * * *"), active=False),
]
)


Dive into these new scheduling capabilities today and streamline your workflows like never before.

</details>

For implementation details, see the following pull request:
- https://github.com/PrefectHQ/prefect/pull/12107

New Contributors 🌟
- Shoutout to jrbourbeau for their first contribution!

<hr>

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

Page 20 of 60

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.