mirror of
https://github.com/hanzoai/tasks.git
synced 2026-11-02 12:22:18 +00:00
## What changed? - Introduced a new "move (task) group" action replacing the "incorrect" slice-predicate action. See inline comment for how it works. - Improve task Predicate AND/OR calculation to reduce predicate size. - Skip empty slices when adding queue slices to readers. ## Why? - Better namespace isolation. ## How did you test it? - [x] built - [x] run locally and tested manually - [ ] covered by existing tests - [x] added new unit test(s) - [ ] added new functional test(s) ## Potential risks - The new action can be disabled via dc.
11 lines
235 B
Go
11 lines
235 B
Go
package queues
|
|
|
|
type (
|
|
// Action is a set of operations that can be run on a ReaderGroup.
|
|
// It is created and run by Mitigator upon receiving an Alert.
|
|
Action interface {
|
|
Name() string
|
|
Run(*ReaderGroup) (actionTaken bool)
|
|
}
|
|
)
|