-
Notifications
You must be signed in to change notification settings - Fork 2
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
Change rail-pm task count from github action #177
Conversation
We sometimes want to change the task count for the rail performance manager as well. Add an input that lets us specify the application we're adjusting the task count on. Use the choice type to create drop-downs on the github page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved this since its not just ingestion.
environment: | ||
type: choice | ||
description: What environment to change the task count for | ||
options: | ||
- dev | ||
- staging |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use a choice rather than having us enter the string. it should create a drop down on the github action ui.
application_name: | ||
type: choice | ||
description: What application to adjust the task count for | ||
options: | ||
- ingestion | ||
- rail-performance-manager |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let us select what application we're adjusting the task count of.
if: | | ||
( github.event.inputs.new_count == 0 || github.event.inputs.new_count == 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
choice only seems to work with ints (at least my linter yelled at me) so i left these as a manual entry. keeping this if gate to prevent us from setting the task count to 11 or something.
|
||
steps: | ||
- name: run command | ||
run: aws ecs update-service --cluster lamp --service lamp-${{ github.event.inputs.application_name }}-${{ github.event.inputs.environment }} --desired-count ${{ github.event.inputs.new_count }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added the application name to the update service call.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
We sometimes want to change the task count for the rail performance manager as well. Add an input that lets us specify the application we're adjusting the task count on.
Use the choice type to create drop-downs on the github page.