-
Notifications
You must be signed in to change notification settings - Fork 38
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
modal run -q
option does not do what it says
#2076
Comments
Hi, sorry about the misleading option description here. That said, I think most people would expect a |
Totally makes sense! If you are willing to add another option that only omits the progress bar but still shows stdout/stderr, that would be a killer feature for me. Again, I want the progress bar rarely (since I use pdb/ipdb debugger, which is unusable with progress bar) but I want logs almost always. If not able to prioritize this I understand! Keep up the amazing work. |
Apparently this is actually a fairly recent regression and |
@mwaskom thanks for the response! Looking forward to updates. |
Hello,
During development, I frequently run Modal applications like this:
That starts a debugging shell where the output can be inspected, etc. I have been using
pdb
andipdb
in this way for many years.It is necessary to run a script like this with the
-q
option. That is,modal run -iq script.py
is necessary, or else the Modal progress indicators get in the way of the debug shell.modal run --help
shows the following:But actually,
modal run -q script.py
doesn't just hide the Modal progress indicators, it also redirects all console output that remote functions print tostdout
andstderr
. To see this output, I have to open a browser tab to modal.com, which I usually have open anyway.This is a bit annoying, but more importantly it deviates from the CLI's description of that argument. For me, if it honored the CLI description (hide Modal progress indicators but don't hide other output), that would be ideal. I suppose if that's a huge lift you could just edit the CLI description to say "Don't show Modal progress indicators or stdout/stderr from remote containers.", but for me that would not be preferred.
Thanks so much!
The text was updated successfully, but these errors were encountered: