Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
amirbashan committed Feb 10, 2025
1 parent 4076563 commit 9f7e17f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,15 @@ ReActivate the virtual environment
. .venv/Scripts/activate
```

### `run a script in venv`
ReActivate the virtual environment

```bash
.venv/Scripts/python -m operators.test_email_notifier.__init__
```
example .venv/Scripts/python -m operators.{dir_name}.__init__


## Other
### `dgp-app`

Expand Down
4 changes: 2 additions & 2 deletions srm_tools/error_notifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ def send_failure_email(operation_name: str, error: str, is_test: bool = False):
logger.info(f"sender email: {SENDER_EMAIL}.")
logger.info(f"recipient list: {RECIPIENT_LIST}.")

subject = f"ETL Task Failed - {ENV_NAME}:{operation_name}"
body = f"Operation `{operation_name}` encountered an error:\n\n{error}"
subject = f"ETL Task - {ENV_NAME} : {operation_name} Failed"
body = f"Operation `{operation_name}` encountered an error:\n\nError Log:\n{error}"

# Create email message
msg = MIMEMultipart()
Expand Down

0 comments on commit 9f7e17f

Please sign in to comment.