Skip to content

Commit

Permalink
Merge pull request #899 from DalgoT4D/dont-send-empty-emails
Browse files Browse the repository at this point in the history
don't send empty emails for long-running flow-runs
  • Loading branch information
fatchat authored Nov 24, 2024
2 parents 2440ef6 + d014ce2 commit cdcea0a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions ddpui/celeryworkers/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1025,11 +1025,12 @@ def check_for_long_running_flow_runs():

email_body += "=" * 20

awsses.send_text_message(
os.getenv("ADMIN_EMAIL"),
"Long Running Flow Runs",
email_body,
)
if email_body != "":
awsses.send_text_message(
os.getenv("ADMIN_EMAIL"),
"Long Running Flow Runs",
email_body,
)


@app.on_after_finalize.connect
Expand Down

0 comments on commit cdcea0a

Please sign in to comment.