-
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
add watch option #11702
add watch option #11702
Conversation
✅ Deploy Preview for prefect-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Oooo, nice one |
We could expand this later to stream events and logs in real-time, I think: prefect/src/prefect/events/clients.py Line 250 in 5f570d2
|
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.
Cool! I left some initial comments. Around line 560 is where it would be good to exit_with_error
early if a user provides a watch_interval
but no --watch
flag, etc. etc.
Co-authored-by: Serina Grill <42048900+serinamarie@users.noreply.github.com>
Co-authored-by: Serina Grill <42048900+serinamarie@users.noreply.github.com>
Co-authored-by: Alexander Streed <desertaxle@users.noreply.github.com>
Title: Add
--watch
Command to Monitor Flow Runs in CLIOverview:
This pull request introduces the
--watch
command to the CLI, enhancing the user experience by allowing real-time monitoring of flow runs. This feature is particularly useful for users who need to track the progress of their flows and get immediate feedback upon completion.Example:
With the
--watch
option, users can now initiate a flow run and actively monitor its progress. Upon completion, the command outputs the final state of the flow run tostderr
, providing immediate visibility into the success or failure of the execution. Here's a simple example:This command will initiate the monitoring of the specified flow run and display updates until the run is completed.
Checklist:
feature
.netlify.toml
.