Skip to content

Commit

Permalink
Not send successful report (huggingface#17329)
Browse files Browse the repository at this point in the history
* send report only if there is any failure

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
  • Loading branch information
ydshieh and ydshieh authored May 18, 2022
1 parent b3b9f99 commit 060fe61
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions utils/notification_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -773,5 +773,7 @@ def add_path(self, path: str, gpu: str = None):

message = Message(title, ci_title, model_results, additional_results)

message.post()
message.post_reply()
# send report only if there is any failure
if message.n_failures:
message.post()
message.post_reply()

0 comments on commit 060fe61

Please sign in to comment.