From 83d08d7d5fa7db2ecb28c3a71cbd944a7539163c Mon Sep 17 00:00:00 2001
From: "Eli C. Lowry" <83078660+Enkidu93@users.noreply.github.com>
Date: Thu, 19 Oct 2023 11:18:40 -0400
Subject: [PATCH] Fixes Add Cancelling state for jobs #121 (#188)
---
src/Serval.Client/Client.g.cs | 2 +-
.../Controllers/TranslationEnginesController.cs | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/Serval.Client/Client.g.cs b/src/Serval.Client/Client.g.cs
index 430a6d40..4493fa95 100644
--- a/src/Serval.Client/Client.g.cs
+++ b/src/Serval.Client/Client.g.cs
@@ -3009,7 +3009,7 @@ public string BaseUrl
if (status_ == 409)
{
string responseText_ = ( response_.Content == null ) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false);
- throw new ServalApiException("There is already an active/pending build", status_, responseText_, headers_, null);
+ throw new ServalApiException("There is already an active or pending build or a build in the process of being canceled", status_, responseText_, headers_, null);
}
else
if (status_ == 503)
diff --git a/src/Serval.Translation/Controllers/TranslationEnginesController.cs b/src/Serval.Translation/Controllers/TranslationEnginesController.cs
index 04c6c8e8..b0dfdd17 100644
--- a/src/Serval.Translation/Controllers/TranslationEnginesController.cs
+++ b/src/Serval.Translation/Controllers/TranslationEnginesController.cs
@@ -784,7 +784,7 @@ CancellationToken cancellationToken
/// The client is not authenticated
/// The authenticated client does not own the translation engine
/// The engine does not exist
- /// There is already an active/pending build
+ /// There is already an active or pending build or a build in the process of being canceled
/// A necessary service is currently unavailable. Check `/health` for more details.
[Authorize(Scopes.UpdateTranslationEngines)]
[HttpPost("{id}/builds")]