Open osrf-migration opened 7 years ago
Original comment by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).
I believe @hugomatic and @sloretz were working on shutting down machines for the Prius Challenge after one hour. If the portal periodically updates the remaining time on the data it sends to the widgets through the websocket, widgets can display it.
For resetting, an idea would be for the portal to offer a PUT /simulators/<simulator_id>
route which the widgets can use to update the time in the simulator data.
Original comment by Hugo Boyer (Bitbucket: hugomatic, GitHub: hugomatic).
look here:
This is not on the "production" portal yet. On "dev", whenever the machine is shutdown sudo shutdown now
the instance will terminate.
FYI, if you issue a shutddown
on the production instances (sasc), the current behavior on production is that the machine will appear shutdown, but in fact it is only "stopped" in AWS. This is good, since we're only paying for storage and we can "resume" the machine.
Original comment by Shane Loretz (Bitbucket: Shane Loretz, GitHub: sloretz).
Yeah, on the prius challenge project the time remaining is tracked by the instance. It shuts itself down when it runs out of time.
Original report (archived issue) by Tully Foote (Bitbucket: Tully Foote, GitHub: tfoote).
We have people leaving machines online. I think they're done. But if we had an automatic, resettable countdown timer that if it runs out the machines will automatically clean up we could avoid abandoned machines. If there's a simple way to reup the amount of time left it shouldn't be too onerous.