Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[reefd] HTTP server to handle launching instances with goroutine #249

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

khluu
Copy link
Contributor

@khluu khluu commented Nov 25, 2024

  • HTTP server to handle POST requests with instance configuration to launch
  • Handler function to add the configuration as the desired state in the launch_requests sqlite table then kick off a goroutine to execute processLaunchRequests function.
  • The processLaunchRequests function does the following:
    • Pull instance info from AWS and update current state of all instances in launch_requests table
    • Query for requests that don't have an associated instance (which means instance was not launched to satisfy the desired state yet)
    • Calls another function to launch instance to match the desired state for each matching request
    • Update the launched instance ID to the respective request row in the table.

p
Signed-off-by: kevin <[email protected]>
p
Signed-off-by: kevin <[email protected]>
p
Signed-off-by: kevin <[email protected]>
p
Signed-off-by: kevin <[email protected]>
@khluu khluu requested a review from aslonnie November 25, 2024 03:01
Signed-off-by: kevin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant