mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-13 07:27:43 +00:00
mark workgroups as done
This commit is contained in:
parent
88223e6155
commit
8dd6242bff
1 changed files with 2 additions and 0 deletions
|
@ -496,6 +496,8 @@ func enqueueAccounts(ctx context.Context, logger *zap.Logger, statsd *statsd.Cli
|
|||
for i := 0; i < accountEnqueueSeconds; i++ {
|
||||
wg.Add(1)
|
||||
go func(ctx context.Context, offset int) {
|
||||
defer wg.Done()
|
||||
|
||||
ids := chunks[offset]
|
||||
time.Sleep(time.Duration(offset) * time.Second)
|
||||
|
||||
|
|
Loading…
Reference in a new issue