Open skyrpex opened 1 year ago
Interesting idea!
I'd start by offering some facilities to start containers and child processes through the simulator context. This will allow reusing the logic but also funnel everything through a central mechanism.
Then we can add some APIs for listing/accessing/collecting logs.
By the way, logs from child/docker should be emitted as log events anyway, so this is aligned!
Hi,
This issue hasn't seen activity in 60 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. Feel free to re-open this issue when there's an update or relevant information to be added. Thanks!
I was thinking about this recently, especially for the dev servers use case.
Maybe it would make sense to have this behind a new flag in the simulator? This way output from these processes can still be converted to traces if you're running the simulator headless (e.g. wing test --debug
), but other apps using the simulator like the console can choose how to show the stdout/stderr of various processes on some separate tab or screen perhaps.
Along with https://github.com/winglang/wing/issues/4583, the Console / Simulator could keep track of the processes instantiated to serve the resources. These processes can be:
The Console would list all of these processes and show which resource manages it. It should also be possible to view each process' logs and see if they ended preemptively (eg, there was an error).