feat(ingestion): add failWithError and failWithCancel GraphQL mutations

This commit is contained in:
Björn Steinhagen
2026-01-27 22:28:11 +02:00
parent b17fb89e60
commit 4b746fa407
+39
View File
@@ -60,3 +60,42 @@ export const completeModelIngestionWithVersion = graphql(`
}
}
`)
export const failModelIngestionWithError = graphql(`
mutation FailModelIngestionWithError($input: ModelIngestionFailedInput!) {
projectMutations {
modelIngestionMutations {
failWithError(input: $input) {
id
statusData {
__typename
... on ModelIngestionFailedStatus {
status
errorReason
errorStacktrace
}
}
}
}
}
}
`)
export const failModelIngestionWithCancel = graphql(`
mutation FailModelIngestionWithCancel($input: ModelIngestionCancelledInput!) {
projectMutations {
modelIngestionMutations {
failWithCancel(input: $input) {
id
statusData {
__typename
... on ModelIngestionCancelledStatus {
status
cancellationMessage
}
}
}
}
}
}
`)