sweep up old spot market requests on shutdown
Open
- Dominant language
- JavaScript
- Stars
- 1
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
`function terminateInstance` should first collect all spot market request before it's created_at timestamp. This will also include _zombie_ spot market requests (we shouldn't have any though).
It should pass `force_termination=true` query param to the endpoint. `https://api.equinix.com/metal/v1/spot-market-requests/{id}?force_termination=true`
We should still delete the self instance. I've noticed that the associated spot instances might not get deleted with `force_termination=true`.
Maybe also specify `end_at` when creating the spot market request. It should be <60mins.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.