Start/stop a service with the app
Closed this issue · 3 comments
eladb commented
Feature Spec
The cloud.Service
resource can now be used to start/stop services when the simulated app is starting:
let service = new cloud.Service();
service.on_startup(inflight () => {
log("starting service...");
});
service.on_shutdown(inflight () => {
log("stopping service...");
});
The provided inflight closures will be executed when the system is started and stopped respectively.
Use Cases
This is useful for long-running services in the cloud, but also for simulated services. For example, if I want to start/stop ngrok with my simulated app.
Implementation Notes
No response
Component
SDK
Community Notes
- Please vote by adding a 👍 reaction to the issue to help us prioritize.
- If you are interested to work on this issue, please leave a comment.
staycoolcall911 commented
This should also be updated in the SDK spec.
github-actions commented
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!
monadabot commented
Congrats! 🚀 This was released in Wing 0.34.0.