-
Notifications
You must be signed in to change notification settings - Fork 18
[Chore] Notify via Email When codeflash --all Completes #529
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
base: main
Are you sure you want to change the base?
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
codeflash/optimization/optimizer.py
Outdated
@@ -342,6 +343,11 @@ def run(self) -> None: | |||
logger.info("❌ No optimizations found.") | |||
elif self.args.all: | |||
logger.info("✨ All functions have been optimized! ✨") | |||
response = send_completion_email() |
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.
Q: Aren't we sending the mail with some details on optimization?
Or is it planned in TODO?
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.
It is planned as a TODO
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.
So Can you please add it as a comment for TODO here.
@HeshamHM28 can you fix the type error here, then we can merge this |
PR Type
Enhancement
Description
Add send_completion_email API function
Invoke email send on optimize --all completion
Add error handling with Sentry capturing
Log email send success and failure
Changes diagram
Changes walkthrough 📝
cfapi.py
Add send_completion_email API function
codeflash/api/cfapi.py
send_completion_email
API functionowner
andrepo
withget_repo_owner_and_name
/send-completion-email
endpointoptimizer.py
Trigger completion email after optimizations
codeflash/optimization/optimizer.py
send_completion_email
fromcfapi
--all
optimization