https://prefect.io logo
Prefect Release 2.7.2 Announcement
a

Anna Geller

12/15/2022, 10:44 PM
Hi everyone! πŸ‘‹ Prefect 2.7.2 is here πŸ˜›refect2: :cloud2: This release extends the recently added *pause*/*resume* feature with rescheduling of paused flow runs. You can now pass the
reschedule=True
argument to the
pause_flow_run
utility to gracefully stop the infrastructure process and put the flow run back into a
Scheduled
state. This way, you can free up the infrastructure resources instead of keeping the original flow run process running while waiting for approval.
πŸ’‘ Note that: this kind of rescheduling pauses works only with flow runs created from deployments and requires results persistence using either the
persist_result=True
option on the flow decorator, or by setting it globally:
prefect config set PREFECT_RESULTS_PERSIST_BY_DEFAULT='True'
You can now also manually pause a flow run in progress using the new Pause button directly from the flow run UI page (see the screenshot below). Resuming a run can be performed also from the UI, or from code:
from prefect import resume_flow_run, pause_flow_run

id_ = "pasy_your_flow_run_uuid_here"
pause_flow_run(id_, timeout=4200, reschedule=True)

# once you're ready to resume (you can do it from the UI, too):
resume_flow_run(id_)
Other enhancements and improvements in this release: β€’ Two new Prefect Collections: prefect-kubernetes :kubernetes: and prefect-bitbucket :bucket: β€’ Task Run Concurrency UI page now includes details and shows active task runs currently using allocated concurrency slots (see the second screenshot) β€’ New Opsgenie notifications block - kudos to Julien Lutran for contributing! :gratitude-thank-you: β€’ Fixes to imports and their performance β€’ New
SecretDict
block field that allows to obfuscate nested values in a dictionary on blocks such as
GcpCredentials
or
FugueEngine
β€’ If you have a flow call (e.g.
myflow()
) in your flow script, not protected by an
if __name__ == "__main__:
block, any run from that deployment will now work without giving you a warning about that unprotected call β€’ Several documentation improvements incl. new
with_options
usage examples, recipe and tutorial references, Automations docs, and more! For all enhancements and fixes, check the release notes - it even includes a Marvin joke. :marvin-duck: Happy engineering! πŸŽ„πŸ˜›refect-duck:
:blob-attention-gif: 7
:party-parrot: 9
:prefect: 7
πŸ™Œ 5
πŸ’™ 3
:thank-you: 7
πŸŽ‰ 17
πŸ’« 4
...and here we go with the 2.7.3 release, including bug fixes to the latest release, a.o. issues with the flow (function) name in the deployment's entrypoint. Thanks to everyone reporting issues here on Slack and on GitHub! :gratitude-thank-you: As always, see the release notes for details. Have a great weekend! πŸ™Œ
:thank-you: 10
:marvin-duck: 3
πŸ™‚ 3
πŸ™ŒπŸ½ 1
πŸŽ‰ 8
πŸ™Œ 2