Skip to content

Commit 5f833a2

Browse files
authored
Merge pull request #4 from cruxstack/dev
feat: ignore copy fails for "not within the range"
2 parents 14446c9 + c1f3ad4 commit 5f833a2

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)