Implement CancelBatchSpec mutation
Created by: mrnugget
This is part of #25962 (closed) and implements the cancelBatchSpec
mutation.
There's a two big things going on in this PR:
- Implement the
CancelBatchSpec
methods in theService
and theStore
(which uses the SQL snippet we previously had but adapts it to allow more options/predicates) - Add a method that computes the current execution state of a
BatchSpec
. This is required to return an error in theCancelBatchSpec
method in case the batch spec is not in a canceable state.
With the introduction of computeBatchSpecState
it also made sense to use that in the GraphQL layer.