Skip to content

Commit

Permalink
Fixes Add Cancelling state for jobs #121
Browse files Browse the repository at this point in the history
  • Loading branch information
Enkidu93 committed Oct 19, 2023
1 parent 2f6f6d2 commit 6e4cc34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Serval.Client/Client.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ CancellationToken cancellationToken
/// <response code="401">The client is not authenticated</response>
/// <response code="403">The authenticated client does not own the translation engine</response>
/// <response code="404">The engine does not exist</response>
/// <response code="409">There is already an active/pending build</response>
/// <response code="409">There is already an active or pending build or a build in the process of being canceled</response>
/// <response code="503">A necessary service is currently unavailable. Check `/health` for more details.</response>
[Authorize(Scopes.UpdateTranslationEngines)]
[HttpPost("{id}/builds")]
Expand Down

0 comments on commit 6e4cc34

Please sign in to comment.