forked from TrueCloudLab/frostfs-node
[#255] services/audit: Skip all tasks from previous epoch in audit processor
Implement Reset method on audit task manager that cleans task queue. Extended TaskManager interface with Reset method on IR side. Call Reset method in audit processor before new audit start. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
33804e024d
commit
76d4e53ea0
3 changed files with 10 additions and 0 deletions
|
@ -30,6 +30,7 @@ type (
|
|||
|
||||
TaskManager interface {
|
||||
PushTask(*audit.Task) error
|
||||
Reset()
|
||||
}
|
||||
|
||||
// Processor of events related with data audit.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue