12552: Prioritize containers according to top-level requests.
authorTom Clegg <tclegg@veritasgenetics.com>
Tue, 13 Mar 2018 14:44:15 +0000 (10:44 -0400)
committerTom Clegg <tclegg@veritasgenetics.com>
Tue, 13 Mar 2018 20:15:34 +0000 (16:15 -0400)
commita9065fd962827b2cfae7993b550a386821a08dcb
tree6025ad7e42201908f683bf75aa0d08dff3c044cf
parentb4b8de21d5c324264b8473446e52e2f595df9039
12552: Prioritize containers according to top-level requests.

This change ensures:

* a high-priority container and all of its descendants are prioritized
  ahead of lower-priority containers and their descendants.

* when two top-level containers are requested using equal priority,
  the earlier-submitted container has higher priority.

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg@veritasgenetics.com>
services/api/app/models/container.rb
services/api/app/models/container_request.rb
services/api/db/migrate/20180313180114_change_container_priority_bigint.rb [new file with mode: 0644]
services/api/db/structure.sql
services/api/test/unit/container_request_test.rb
services/api/test/unit/container_test.rb
services/crunch-dispatch-slurm/squeue.go