Skip to content

Commit

Permalink
Adding continue to rety the loop when getting 504 (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieudolci authored Aug 30, 2018
1 parent 1ecdcc1 commit 5351441
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions standup/standup.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ func AskStandupYesterday(s *common.Slack, ev *slack.MessageEvent) error {
log.WithFields(log.Fields{
"timestamp": timestamp,
}).WithError(err).Error("Could not get the IM history of the message")
continue
}
log.WithFields(log.Fields{
"timestamp": timestamp,
Expand Down Expand Up @@ -185,6 +186,7 @@ loop:
log.WithFields(log.Fields{
"timestamp": timestamp,
}).WithError(err).Error("Could not get the IM history of the message")
continue
}
log.WithFields(log.Fields{
"timestamp": timestamp,
Expand Down Expand Up @@ -300,6 +302,7 @@ loop:
log.WithFields(log.Fields{
"timestamp": timestamp,
}).WithError(err).Error("Could not get the IM history of the message")
continue
}
log.WithFields(log.Fields{
"timestamp": timestamp,
Expand Down Expand Up @@ -418,10 +421,12 @@ loop:
log.WithFields(log.Fields{
"timestamp": timestamp,
}).WithError(err).Error("Could not get the IM history of the message")
continue
}
log.WithFields(log.Fields{
"timestamp": timestamp,
}).Debug("Getting IM history of the message")

message := history.Messages

if len(message) == 0 {
Expand Down

0 comments on commit 5351441

Please sign in to comment.