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

Change rail-pm task count from github action #177

Merged
merged 1 commit into from
Oct 26, 2023

Conversation

mzappitello
Copy link
Contributor

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.

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.
Copy link
Contributor Author

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.

Comment on lines +6 to +11
environment:
type: choice
description: What environment to change the task count for
options:
- dev
- staging
Copy link
Contributor Author

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.

Comment on lines +15 to +20
application_name:
type: choice
description: What application to adjust the task count for
options:
- ingestion
- rail-performance-manager
Copy link
Contributor Author

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.

Comment on lines +24 to +25
if: |
( github.event.inputs.new_count == 0 || github.event.inputs.new_count == 1)
Copy link
Contributor Author

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 }}
Copy link
Contributor Author

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.

Copy link
Collaborator

@rymarczy rymarczy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mzappitello mzappitello merged commit 9b934d9 into main Oct 26, 2023
2 checks passed
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.

2 participants