Prefect is a workflow orchestration tool empowering developers to build, observe, and react to data pipelines
prefect deploy
— https://github.com/PrefectHQ/prefect/pull/12833
validationUpdate
schema where definitions are falsy — https://github.com/PrefectHQ/prefect/pull/12880
prefect cloud login
to override current workspace — https://github.com/PrefectHQ/prefect/pull/12867
prefect deployment run --watch
— https://github.com/PrefectHQ/prefect/pull/12894
flow.serve
and .deploy
— https://github.com/PrefectHQ/prefect/pull/12789
PrefectCloudEventSubscriber
via CLI — https://github.com/PrefectHQ/prefect/pull/12796
prefect automation delete
CLI — https://github.com/PrefectHQ/prefect/pull/12876
prefect-azure
docs to Integrations section of the Prefect docs — https://github.com/PrefectHQ/prefect/pull/12794
server
import recommendations — https://github.com/PrefectHQ/prefect/pull/12823
FormattedDate
component to display accessible, long-form timestamps consistentlynull
(None
) — https://github.com/PrefectHQ/prefect-ui-library/pull/2323
vpc
isn't in job template — https://github.com/PrefectHQ/prefect-gcp/pull/267
deployment.yaml
in prefect deploy
— https://github.com/PrefectHQ/prefect/pull/12731
-f/--flow
as option to prefect deploy
— https://github.com/PrefectHQ/prefect/pull/12732
projects
from prefect deploy
— https://github.com/PrefectHQ/prefect/pull/12737
--ci
option from prefect deploy
— https://github.com/PrefectHQ/prefect/pull/12740
prefect cloud login
and workspace set
— https://github.com/PrefectHQ/prefect/pull/12717
Full Changelog: https://github.com/PrefectHQ/prefect/compare/2.17.0...2.18.0
See the release notes for more!
opentelemetry
import — https://github.com/PrefectHQ/prefect/pull/12684
All changes: https://github.com/PrefectHQ/prefect/compare/2.17.0...2.17.1
Prefect variables are useful for storing and reusing data and configuration between and across workflows; and previously you could only create and update variables via the Prefect UI. With this release, you can now get and set Prefect variables directly in your Python code with the new Variable.set
and Variable.get
methods!
For an example of reading and writing variable values in Python see the following example:
from prefect.variables import Variable
# set a variable
variable = Variable.set(name="the_answer", value="42")
# get a variable
answer = Variable.get('the_answer')
print(answer.value)
# 42
# get a variable with a default value
answer = Variable.get('not_the_answer', default='42')
print(answer.value)
# 42
# update a variable
answer = Variable.set(name="the_answer", value="43", overwrite=True)
print(answer.value)
#43
Refer to the docs for more information and see the PR for implementation details: https://github.com/PrefectHQ/prefect/pull/12596
User-Agent
header containing the running Prefect version — https://github.com/PrefectHQ/prefect/pull/12601
... and numerous 🐛 fixes!
Full Changelog: https://github.com/PrefectHQ/prefect/compare/2.16.9...2.17.0
See the release notes for more!
This release includes a number of enhancements and in-flight feature work.
🛠✨ One such enhancement helps streamline our CLI by adding a -jv/--job-variable
option to prefect deploy
, on par with the option available in prefect deployment run
.
🔄🔗 In terms of enhancing existing Prefect concepts, we've removed a constraint that prevented tasks from being called from other tasks. For example, this allows you to call tasks within tasks within a flow.
🗿 📉 We no longer create artifacts for unpersisted results, which should prevent an influx of entries to the artifact
table. Retried flows without persisted results will now have an error message stating that the "State data is missing" rather than referencing an "unpersisted result".
See the release notes for more details!
prefect shell
for observing CLI commandsYou can now observe CLI commands as a Prefect flow. For example:
» prefect shell watch "curl http://wttr.in/Chicago?format=3"
17:32:39.562 | INFO | prefect.engine - Created flow run 'powerful-mushroom' for flow 'Shell Command'
17:32:40.171 | INFO | Flow run 'powerful-mushroom' - Chicago: ⛅️ +50°F
17:32:40.315 | INFO | Flow run 'powerful-mushroom' - Finished in state Completed()
See these docs to learn how to:
watch
serve
See the PR for implementation details: https://github.com/PrefectHQ/prefect/pull/11998
DeploymentTrigger
YAML representation — https://github.com/PrefectHQ/prefect/pull/12413
... and numerous 🐛 fixes!
Full Changelog: https://github.com/PrefectHQ/prefect/compare/2.16.6...2.16.7
See the release notes for more!
typer 0.10.0
that broke the prefect
CLISee the following pull request for implementation details:
typer.Option
behavior — https://github.com/PrefectHQ/prefect/pull/12398
All changes: https://github.com/PrefectHQ/prefect/compare/2.16.5...2.16.6
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.
See the following pull request for implementation details:
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!
Full Changelog: https://github.com/PrefectHQ/prefect/compare/2.16.4...2.16.5
See the release notes for more!
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.
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.
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:
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 guide.
#2190
#139
build_from_flow
- https://github.com/PrefectHQ/prefect/pull/12257
prefect deployment run
- https://github.com/PrefectHQ/prefect/pull/12267
#2216
#392
serve
method on tasks - https://github.com/PrefectHQ/prefect/pull/12239
PrefectAgent
and prefect agent
command group - https://github.com/PrefectHQ/prefect/pull/12273
Deployment
class and deployment build
and apply
commands - https://github.com/PrefectHQ/prefect/pull/12283
packaging
module - https://github.com/PrefectHQ/prefect/pull/12291
default-agent-pool
in empty state server - https://github.com/PrefectHQ/prefect/pull/12214
get_run_logger
to imports in interactive workflow examples - https://github.com/PrefectHQ/prefect/pull/12284
on_running
state change hook to State -> Concepts docs - https://github.com/PrefectHQ/prefect/pull/12293
Full Changelog: https://github.com/PrefectHQ/prefect/compare/2.16.3...2.16.4