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

feat(ecs): add ecs scheduling #21

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

feat(ecs): add ecs scheduling #21

wants to merge 1 commit into from

Conversation

cterence
Copy link

@cterence cterence commented Dec 1, 2023

No description provided.

@cterence cterence requested review from dixneuf19 and a team as code owners December 1, 2023 10:37
@cterence cterence self-assigned this Dec 1, 2023
"""
try:
self.ecs.update_service(
cluster=self.cluster_name, service=self.service_name, desiredCount=1
Copy link
Contributor

Choose a reason for hiding this comment

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

Ya un sujet la dessus
Peut etre que ton ancien desiredCount était pas à 1 ?

Copy link
Author

Choose a reason for hiding this comment

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

Proposition pour résoudre ce problème :

  • Au stop, pour chaque service

    • Créer un paramètre ssm s'il n'existe pas (ex : /padok/start-stop-scheduler-ecs-desired-count-service-<service-name>)
    • Changer sa valeur pour le nombre desired count actuel
  • Au start, pour chaque service

    • Lire le paramètre ssm contenant le desired count
    • L'utiliser pour l'update_service, sinon mettre 1 si jamais il n'existe pas (pour éviter que le scheduler échoue à le redémarrer)

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

Successfully merging this pull request may close these issues.

2 participants