File size: 402 Bytes
7107f0b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package tache

// OnBeforeRetry is the interface for tasks that need to be executed before retrying
type OnBeforeRetry interface {
	OnBeforeRetry()
}

// OnSucceeded is the interface for tasks that need to be executed when they succeed
type OnSucceeded interface {
	OnSucceeded()
}

// OnFailed is the interface for tasks that need to be executed when they fail
type OnFailed interface {
	OnFailed()
}