-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introducing CLI Commands for Shell Flows #11998
Conversation
✅ Deploy Preview for prefect-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
This pull request is stale because it has been open 14 days with no activity. To keep this pull request open remove stale label or comment. |
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Thomas Frederik Hoeck <44194839+thomasfrederikhoeck@users.noreply.github.com> Co-authored-by: Thomas Frederik Hoeck <tfh@norden.com> Co-authored-by: nate nowack <thrast36@gmail.com> Co-authored-by: nate nowack <nate@prefect.io> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: marvin-robot <marvin-robot@users.noreply.github.com> Co-authored-by: Chris Guidry <chris.g@prefect.io> Co-authored-by: Chris Pickett <chris.pickett@prefect.io> Co-authored-by: Andrew Brookins <andrew.b@prefect.io> Co-authored-by: urimandujano <uriel@prefect.io> Co-authored-by: Collin <collin@prefect.io> Co-authored-by: Zach Angell <42625717+zangell44@users.noreply.github.com> Co-authored-by: Alexander Streed <desertaxle@users.noreply.github.com> Co-authored-by: Edward Park <ed.sh.park@gmail.com> Co-authored-by: Serina Grill <42048900+serinamarie@users.noreply.github.com> Co-authored-by: Jeff Hale <discdiver@users.noreply.github.com> Co-authored-by: jakekaplan <40362401+jakekaplan@users.noreply.github.com> Co-authored-by: Zanie Blue <zanie@prefect.io> Co-authored-by: Kevin Grismore <146098880+kevingrismore@users.noreply.github.com> Co-authored-by: Hamza Mogni <hamzamogni5@gmail.com> Co-authored-by: Bill Palombi <bill@prefect.io> Co-authored-by: Brandon Reid <brandonreidak@gmail.com> Co-authored-by: Elad Moshe <eladm26@gmail.com> Co-authored-by: Jessica Smith <8505845+NodeJSmith@users.noreply.github.com> Co-authored-by: James Bourbeau <jrbourbeau@users.noreply.github.com> Co-authored-by: Alexander Streed <alex.s@prefect.io> Co-authored-by: Sean <64788907+seano-vs@users.noreply.github.com>
…ure/script-watch
…ure/script-watch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
what do you think about adding a small bit of docs on this?
Co-authored-by: Nicholas Brown <znicholasbrown@gmail.com>
Co-authored-by: Serina Grill <42048900+serinamarie@users.noreply.github.com>
Co-authored-by: Serina Grill <42048900+serinamarie@users.noreply.github.com>
…refect into feature/script-watch
…ure/script-watch
…ure/script-watch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'd be great to see one test ensuring this CLI integrates with the runner correctly. It should be sufficient to mock out Runner
and check that Runner.start
is called with the expected arguments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Thomas Frederik Hoeck <44194839+thomasfrederikhoeck@users.noreply.github.com> Co-authored-by: Thomas Frederik Hoeck <tfh@norden.com> Co-authored-by: nate nowack <thrast36@gmail.com> Co-authored-by: nate nowack <nate@prefect.io> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: marvin-robot <marvin-robot@users.noreply.github.com> Co-authored-by: Chris Guidry <chris.g@prefect.io> Co-authored-by: Chris Pickett <chris.pickett@prefect.io> Co-authored-by: Andrew Brookins <andrew.b@prefect.io> Co-authored-by: urimandujano <uriel@prefect.io> Co-authored-by: Collin <collin@prefect.io> Co-authored-by: Zach Angell <42625717+zangell44@users.noreply.github.com> Co-authored-by: Alexander Streed <desertaxle@users.noreply.github.com> Co-authored-by: Edward Park <ed.sh.park@gmail.com> Co-authored-by: Serina Grill <42048900+serinamarie@users.noreply.github.com> Co-authored-by: Jeff Hale <discdiver@users.noreply.github.com> Co-authored-by: jakekaplan <40362401+jakekaplan@users.noreply.github.com> Co-authored-by: Zanie Blue <zanie@prefect.io> Co-authored-by: Kevin Grismore <146098880+kevingrismore@users.noreply.github.com> Co-authored-by: Hamza Mogni <hamzamogni5@gmail.com> Co-authored-by: Bill Palombi <bill@prefect.io> Co-authored-by: Brandon Reid <brandonreidak@gmail.com> Co-authored-by: Elad Moshe <eladm26@gmail.com> Co-authored-by: Jessica Smith <8505845+NodeJSmith@users.noreply.github.com> Co-authored-by: James Bourbeau <jrbourbeau@users.noreply.github.com> Co-authored-by: Alexander Streed <alex.s@prefect.io> Co-authored-by: Sean <64788907+seano-vs@users.noreply.github.com> Co-authored-by: Nicholas Brown <znicholasbrown@gmail.com>
Overview
This update introduces two new CLI commands,
prefect command watch
andprefect command serve
, allowing users to monitor and serve shell commands as Prefect flows effortlessly. Additionally, we're adding aModuleStorage
class to enable module-based flow storage and enable command serving. This feature simplifies integrating shell commands with Prefect, enhancing automation and monitoring capabilities.Example
Imagine scheduling a daily data backup with a simple shell command. With
prefect command watch
, you can now easily incorporate this into your Prefect workflows, monitoring its execution as part of your data pipeline.Checklist
feature
to highlight the new additions.For documentation changes:
For new functions or classes in the Python SDK:
mkdocs.yml
navigation have been prepared to introduceModuleStorage
.Happy engineering!