forked from Silverfish/proton-bridge
fix(GODT-2829): Sync Service fixes
Fix tracking of child jobs. The build stage splits the incoming work even further, but this was not reflected in the wait group counter. This also fixes an issue where the cache was cleared to late. Add more debug info for analysis. Refactor sync state interface in order to have persistent sync rate.
This commit is contained in:
@ -28,8 +28,8 @@ import (
|
||||
)
|
||||
|
||||
type StateProvider interface {
|
||||
AddFailedMessageID(context.Context, string) error
|
||||
RemFailedMessageID(context.Context, string) error
|
||||
AddFailedMessageID(context.Context, ...string) error
|
||||
RemFailedMessageID(context.Context, ...string) error
|
||||
GetSyncStatus(context.Context) (Status, error)
|
||||
ClearSyncStatus(context.Context) error
|
||||
SetHasLabels(context.Context, bool) error
|
||||
@ -85,4 +85,5 @@ type Reporter interface {
|
||||
OnFinished(ctx context.Context)
|
||||
OnError(ctx context.Context, err error)
|
||||
OnProgress(ctx context.Context, delta int64)
|
||||
InitializeProgressCounter(ctx context.Context, current int64, total int64)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user