From 6922a650e391215ad3bf86c05b4b8261a0d74738 Mon Sep 17 00:00:00 2001
From: "Eli C. Lowry" <83078660+Enkidu93@users.noreply.github.com>
Date: Fri, 6 Oct 2023 16:15:54 -0400
Subject: [PATCH] Fixes Build status min rev documentation #90 (#156)
---
.../Controllers/TranslationEnginesController.cs | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/Serval.Translation/Controllers/TranslationEnginesController.cs b/src/Serval.Translation/Controllers/TranslationEnginesController.cs
index 40823eec..836d264d 100644
--- a/src/Serval.Translation/Controllers/TranslationEnginesController.cs
+++ b/src/Serval.Translation/Controllers/TranslationEnginesController.cs
@@ -668,13 +668,13 @@ CancellationToken cancellationToken
/// Get a build job
///
///
- /// If the `minRevision` is not defined, the current build at whatever state it is
+ /// If the `minRevision` is not defined, the current build, at whatever state it is,
/// will be immediately returned. If `minRevision` is defined, Serval will wait for
/// up to 40 seconds for the engine to build to the `minRevision` specified, else
/// will timeout.
/// A use case is to actively query the state of the current build, where the subsequent
- /// request sets the `minRevision` to the returned `revision` + 1. Note: this method
- /// should use request throttling.
+ /// request sets the `minRevision` to the returned `revision` + 1 and timeouts are handled gracefully.
+ /// Note: this method should use request throttling.
///
/// The translation engine id
/// The build job id
@@ -685,7 +685,7 @@ CancellationToken cancellationToken
/// The client is not authenticated
/// The authenticated client does not own the translation engine
/// The engine or build does not exist
- /// The long polling request timed out
+ /// The long polling request timed out. This is expected behavior if you're using long-polling with the minRevision strategy specified in the docs
/// A necessary service is currently unavailable. Check `/health` for more details.
[Authorize(Scopes.ReadTranslationEngines)]
[HttpGet("{id}/builds/{buildId}", Name = "GetTranslationBuild")]
@@ -795,7 +795,7 @@ CancellationToken cancellationToken
/// Get the currently running build job for a translation engine
///
///
- /// See "Get a Build Job" for details on minimum revision.
+ /// See documentation on endpoint /translation/engines/{id}/builds/{id} - "Get a Build Job" for details on using `minRevision`.
///
/// The translation engine id
/// The minimum revision
@@ -806,7 +806,7 @@ CancellationToken cancellationToken
/// The client is not authenticated
/// The authenticated client does not own the translation engine
/// The engine does not exist
- /// The long polling request timed out. Did you start the build?
+ /// The long polling request timed out. This is expected behavior if you're using long-polling with the minRevision strategy specified in the docs
/// A necessary service is currently unavailable. Check `/health` for more details.
[Authorize(Scopes.ReadTranslationEngines)]
[HttpGet("{id}/current-build")]