Skip to content

Commit

Permalink
Working percent completed
Browse files Browse the repository at this point in the history
  • Loading branch information
Enkidu93 committed Oct 13, 2023
1 parent 0ee2127 commit 626188c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ services:
- ASPNETCORE_TranslationEngines__1=Nmt
- ClearML__ApiServer=https://api.sil.hosted.allegro.ai
- ClearML__Queue=production
- ClearML__DockerImage=ghcr.io/sillsdev/machine.py:0.9.5.1
- ClearML__DockerImage=ghcr.io/sillsdev/machine.py:0.9.6.2
- "ClearML__AccessKey=${ClearML_AccessKey:?access key needed}"
- "ClearML__SecretKey=${ClearML_SecretKey:?secret key needed}"
- SharedFile__Uri=s3://aqua-ml-data/docker-compose/
Expand Down Expand Up @@ -137,7 +137,7 @@ services:
- ASPNETCORE_TranslationEngines__1=Nmt
- ClearML__ApiServer=https://api.sil.hosted.allegro.ai
- ClearML__Queue=production
- ClearML__DockerImage=ghcr.io/sillsdev/machine.py:0.9.5.1
- ClearML__DockerImage=ghcr.io/sillsdev/machine.py:0.9.6.2
- "ClearML__AccessKey=${ClearML_AccessKey:?access key needed}"
- "ClearML__SecretKey=${ClearML_SecretKey:?secret key needed}"
- SharedFile__Uri=s3://aqua-ml-data/docker-compose/
Expand Down
6 changes: 4 additions & 2 deletions src/Serval.Client/Client.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,8 @@ public partial interface ITranslationEnginesClient
/// <br/>will timeout.
/// <br/>A use case is to actively query the state of the current build, where the subsequent
/// <br/>request sets the `minRevision` to the returned `revision` + 1 and timeouts are handled gracefully.
/// <br/>Note: this method should use request throttling.
/// <br/>This method should use request throttling.
/// <br/>Note: Within the returned build, percentCompleted is a value between 0 and 1.
/// </remarks>
/// <param name="id">The translation engine id</param>
/// <param name="buildId">The build job id</param>
Expand Down Expand Up @@ -3047,7 +3048,8 @@ public string BaseUrl
/// <br/>will timeout.
/// <br/>A use case is to actively query the state of the current build, where the subsequent
/// <br/>request sets the `minRevision` to the returned `revision` + 1 and timeouts are handled gracefully.
/// <br/>Note: this method should use request throttling.
/// <br/>This method should use request throttling.
/// <br/>Note: Within the returned build, percentCompleted is a value between 0 and 1.
/// </remarks>
/// <param name="id">The translation engine id</param>
/// <param name="buildId">The build job id</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,8 @@ CancellationToken cancellationToken
/// 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 and timeouts are handled gracefully.
/// Note: this method should use request throttling.
/// This method should use request throttling.
/// Note: Within the returned build, percentCompleted is a value between 0 and 1.
/// </remarks>
/// <param name="id">The translation engine id</param>
/// <param name="buildId">The build job id</param>
Expand Down
6 changes: 1 addition & 5 deletions tests/Serval.E2ETests/ServalClientHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@ public ServalClientHelper(string audience, string prefix = "SCE_", bool ignoreSS
$"Bearer {GetAuth0Authentication(env["authUrl"], audience, env["clientId"], env["clientSecret"]).Result}"
);
_prefix = prefix;
TranslationBuildConfig = new TranslationBuildConfig
{
Pretranslate = new List<PretranslateCorpusConfig>(),
Options = "{\"max_steps\":10}"
};
TranslationBuildConfig = new TranslationBuildConfig { Pretranslate = new List<PretranslateCorpusConfig>() };
}

public TranslationBuildConfig TranslationBuildConfig { get; set; }
Expand Down

0 comments on commit 626188c

Please sign in to comment.