Skip to content

Implement CancelBatchSpec mutation

Warren Gifford requested to merge mrn/cancel-batch-spec into main

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 the Service and the Store (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 the CancelBatchSpec 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.

Merge request reports

Loading