-
Notifications
You must be signed in to change notification settings - Fork 13
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
allowing stdin when running an app using command trigger #37
Comments
FWIW, I think including this unconditionally should be ok (and expected default) when writing commands using webassembly. |
ref fermyon#37 This commit unconditionally inherits the `spin up` process' stdin. Given the goal of this trigger is to execute Wasm components to completion, it makes sense to inherit stdin from the parent's process and potentially block on waiting for user input. Signed-off-by: Radu Matei <[email protected]>
I think it would be fine for this to be the default for a future e.g. |
Are we allowing multi-trigger apps today though? |
but it won't block until user explicitly blocks on stdin right? (in which case it should be ok?) |
I mean multiple trigger executors/types.
The issue would be with multiple trigger executors trying to read stdin; |
IIRC, I saw somewhere in spin that stdin is a buffer that is passed. if that is true, then maybe it does not matter if multiple components are asking for stdin. But also open to other suggestions? maybe an explicit config to ask for stdin? |
One option would be a e.g. |
I am working on a wasm-console, which requires
stdin
capabilities. I discussed this briefly on discord and Radu suggested a fix, which worked.I wanted to check with the team if we are ok with including this unconditionally or we should make this configurable (e.g. via a trigger config)?
thanks in advance.
The text was updated successfully, but these errors were encountered: