-
Notifications
You must be signed in to change notification settings - Fork 15
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
Conversation
03bffb6
to
27dd648
Compare
:return: | ||
""" | ||
current_date = datetime.now(timezone.utc).date() | ||
start_date = current_date - timedelta(days=10) | ||
start_date = current_date - timedelta(days=15) |
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.
Why we need to increase the days to 15 ?
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.
To reduce the mailing aggressiveness, send mail every 2 weeks.
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.
ok
27dd648
to
5d62cbe
Compare
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
:return: | ||
""" | ||
current_date = datetime.now(timezone.utc).date() | ||
start_date = current_date - timedelta(days=10) | ||
start_date = current_date - timedelta(days=15) |
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.
ok
Type of change
Note: Fill x in []
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