···1111 "github.com/prometheus/client_golang/prometheus"
1212)
13131414-// Scheduler is a parallel scheduler that will run work on a fixed number of workers
1414+// Scheduler is a parallel scheduler that will run work on a fixed number of workers.
1515+//
1616+// Notably, this scheduler uses a per-DID task tracker to ensure that events are not processed concurrently for the same account. This does *not* mean that all events for the same DID are consistently processed by the same worker.
1517type Scheduler struct {
1618 maxConcurrency int
1719 maxQueue int