Skip to content
This repository has been archived by the owner on Nov 12, 2019. It is now read-only.

Change lib/spot-request-poll.js:pollSpotRequests to be a class called SpotRequestPoller #7

Open
jhford opened this issue Jun 22, 2017 · 0 comments

Comments

@jhford
Copy link
Contributor

jhford commented Jun 22, 2017

It would be nice not to have to pass around quite so much context for this function. Let's turn this function into a class with an interface like this:

class SpotRequestPoller {
  constructor({ec2, state, regions, runaws}) { }
  
  poll()
}

This class should make sure that the polling is done in all regions and should have a single log output to summaries the actions taken in all regions, instead of being done per region

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant