Skip to content

Commit c1f3ad4

Browse files
committed
feat: ignore copy fails for "not within the range"
1 parent 14446c9 commit c1f3ad4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/events/copy-job.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func (sce *CopyJobStateChange) SlackMessage() (slack.MsgOption, slack.MsgOption)
5454

5555
func (sce *CopyJobStateChange) IsAlertable() bool {
5656
failedStates := []string{"FAILED"}
57-
return slices.Contains(failedStates, sce.State)
57+
return slices.Contains(failedStates, sce.State) && !strings.Contains(sce.StatusMessage, "not within the range")
5858
}
5959

6060
func NewCopyJobStateChange(raw json.RawMessage) (*CopyJobStateChange, error) {

0 commit comments

Comments
 (0)