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

keep downloaded files after emailed #1322

Merged
merged 1 commit into from
Dec 5, 2024
Merged

Conversation

LawyZheng
Copy link
Collaborator

@LawyZheng LawyZheng commented Dec 5, 2024

Important

Remove file deletion after email attachment in SendEmailBlock's _build_email_message() function.

  • Behavior:
    • Removed file deletion after email attachment in SendEmailBlock's _build_email_message().
  • Misc:
    • Simplified file handling logic in _build_email_message() by removing unnecessary try-finally block.

This description was created by Ellipsis for 0c99c94. It will automatically update as commits are pushed.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Reviewed everything up to 0c99c94 in 16 seconds

More details
  • Looked at 119 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern/forge/sdk/workflow/models/block.py:1328
  • Draft comment:
    Calculating SHA256 for files that are not deleted might be unnecessary. Consider if this operation is still needed for your use case.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The PR removes the unlink operation, which was used to delete files after they were processed. This change is intentional to keep the files after they are emailed. However, the code still calculates the SHA256 hash of the files, which might not be necessary if the files are not being deleted. This could be a performance consideration.

Workflow ID: wflow_WBLCNZN28vPmteQG


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@LawyZheng LawyZheng merged commit 0099e78 into main Dec 5, 2024
2 checks passed
@LawyZheng LawyZheng deleted the lawy/keep-files-after-emailed branch December 5, 2024 05:35
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.

1 participant