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

Check the previous cost before sending an alert #883

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

athiruma
Copy link
Collaborator

@athiruma athiruma commented Dec 9, 2024

Type of change

Note: Fill x in []

  • bug
  • enhancement
  • documentation
  • dependencies

Description

Check the remaining cost in the last email before sending the budget email. Reduced the aggressiveness from 10 -> 15 days.

For security reasons, all pull requests need to be approved first before running any automated CI

@athiruma athiruma added bug Something isn't working ok-to-test PR ok to test labels Dec 9, 2024
@athiruma athiruma requested a review from ebattat December 9, 2024 12:08
@athiruma athiruma self-assigned this Dec 9, 2024
@athiruma athiruma force-pushed the cro_pre_check_budget branch from 03bffb6 to 27dd648 Compare December 9, 2024 12:09
:return:
"""
current_date = datetime.now(timezone.utc).date()
start_date = current_date - timedelta(days=10)
start_date = current_date - timedelta(days=15)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why we need to increase the days to 15 ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

To reduce the mailing aggressiveness, send mail every 2 weeks.

Copy link
Collaborator

Choose a reason for hiding this comment

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

ok

@athiruma athiruma force-pushed the cro_pre_check_budget branch from 27dd648 to 5d62cbe Compare December 9, 2024 12:43
Copy link
Collaborator

@ebattat ebattat left a comment

Choose a reason for hiding this comment

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

/LGTM

:return:
"""
current_date = datetime.now(timezone.utc).date()
start_date = current_date - timedelta(days=10)
start_date = current_date - timedelta(days=15)
Copy link
Collaborator

Choose a reason for hiding this comment

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

ok

@ebattat ebattat merged commit b8b3200 into redhat-performance:main Dec 9, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ok-to-test PR ok to test
Projects
Development

Successfully merging this pull request may close these issues.

2 participants