mark workgroups as done

This commit is contained in:
Andre Medeiros 2023-03-16 10:13:26 -04:00
parent 88223e6155
commit 8dd6242bff

View file

@ -496,6 +496,8 @@ func enqueueAccounts(ctx context.Context, logger *zap.Logger, statsd *statsd.Cli
for i := 0; i < accountEnqueueSeconds; i++ { for i := 0; i < accountEnqueueSeconds; i++ {
wg.Add(1) wg.Add(1)
go func(ctx context.Context, offset int) { go func(ctx context.Context, offset int) {
defer wg.Done()
ids := chunks[offset] ids := chunks[offset]
time.Sleep(time.Duration(offset) * time.Second) time.Sleep(time.Duration(offset) * time.Second)