Skip to content

Commit

Permalink
add GetFailureMessage method
Browse files Browse the repository at this point in the history
Signed-off-by: Mikhail Scherba <[email protected]>
  • Loading branch information
miklezzzz committed Sep 4, 2024
1 parent 22aa2b0 commit 4f18ae3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/task/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ type Task interface {
GetId() string
GetType() TaskType
IncrementFailureCount()
GetFailureMessage() string
UpdateFailureMessage(msg string)
GetFailureCount() int
GetLogLabels() map[string]string
Expand Down Expand Up @@ -133,6 +134,10 @@ func (t *BaseTask) UpdateFailureMessage(msg string) {
t.FailureMessage = msg
}

func (t *BaseTask) GetFailureMessage() string {
return t.FailureMessage
}

func (t *BaseTask) GetDescription() string {
metaDescription := ""
t.lock.RLock()
Expand Down

0 comments on commit 4f18ae3

Please sign in to comment.