12902: Leave child CR "cancelled" (not "on hold") when parent exits.
authorTom Clegg <tclegg@veritasgenetics.com>
Tue, 23 Jan 2018 15:40:21 +0000 (10:40 -0500)
committerTom Clegg <tclegg@veritasgenetics.com>
Wed, 31 Jan 2018 15:18:40 +0000 (10:18 -0500)
commit23995e4bd823ff1a9f4986ac2b852fd35d740940
tree406a640e6984511540d9374bc2e2be36001d9d68
parent3a3fc5ac54a80b62b05f78cf2da0a7b43f4a4380
12902: Leave child CR "cancelled" (not "on hold") when parent exits.

Changing a container's priority to 0 effects "cancel" only after it
has started. Before that, it just gets held in the queue with priority
0. The child CRs of a terminated container are presumed abandoned, so
it makes more sense to finalize them.

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/test/unit/container_test.rb