14807: Avoid doing concurrent update requests per container.
authorTom Clegg <tclegg@veritasgenetics.com>
Thu, 21 Feb 2019 06:00:00 +0000 (01:00 -0500)
committerTom Clegg <tclegg@veritasgenetics.com>
Thu, 21 Feb 2019 06:00:00 +0000 (01:00 -0500)
commit9559f6df3d943cff3cd946c406535971fdf35fb8
treef20d7520a861248080a2ec4366dd239427c6f2bf
parentd97388bdbfeb6a43cb86996012a1db0ba4a8871f
14807: Avoid doing concurrent update requests per container.

The previous code avoided concurrent Lock requests, but would
sometimes generate lots of overlapping Cancel requests instead of
waiting for the first one to finish.

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg@veritasgenetics.com>
lib/dispatchcloud/scheduler/run_queue.go
lib/dispatchcloud/scheduler/scheduler.go
lib/dispatchcloud/scheduler/sync.go