-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add support for multiple build stages - add support for running build jobs on Hangfire or ClearML - add BuildJobService - categorize build jobs into CPU or GPU jobs - decouple build job runners from translation engines - fix issues with S3FileStorage - fix issues with ClearMLService
- Loading branch information
Showing
66 changed files
with
2,929 additions
and
1,759 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace SIL.Machine.AspNetCore.Configuration; | ||
|
||
public class BuildJobOptions | ||
{ | ||
public const string Key = "BuildJob"; | ||
|
||
public Dictionary<BuildJobType, BuildJobRunner> Runners { get; set; } = | ||
new() { { BuildJobType.Cpu, BuildJobRunner.Hangfire }, { BuildJobType.Gpu, BuildJobRunner.ClearML } }; | ||
} |
6 changes: 3 additions & 3 deletions
6
.../Configuration/ClearMLNmtEngineOptions.cs → ...spNetCore/Configuration/ClearMLOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
namespace SIL.Machine.AspNetCore.Models; | ||
|
||
public enum BuildJobState | ||
{ | ||
None, | ||
Pending, | ||
Active, | ||
Canceling | ||
} | ||
|
||
public enum BuildJobRunner | ||
{ | ||
Hangfire, | ||
ClearML | ||
} | ||
|
||
public class Build | ||
{ | ||
public string BuildId { get; set; } = default!; | ||
public BuildJobState JobState { get; set; } | ||
public string JobId { get; set; } = default!; | ||
public BuildJobRunner JobRunner { get; set; } | ||
public string Stage { get; set; } = default!; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
namespace SIL.Machine.AspNetCore.Models; | ||
|
||
public class ClearMLMetricsEvent | ||
{ | ||
public string Metric { get; set; } = default!; | ||
public string Variant { get; set; } = default!; | ||
public double Value { get; set; } | ||
public double MinValue { get; set; } | ||
public int MinValueIteration { get; set; } | ||
public double MaxValue { get; set; } | ||
public int MaxValueIteration { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,12 @@ | ||
namespace SIL.Machine.AspNetCore.Models; | ||
|
||
public enum BuildState | ||
{ | ||
None, | ||
Pending, | ||
Active | ||
} | ||
|
||
public class TranslationEngine : IEntity | ||
{ | ||
public string Id { get; set; } = default!; | ||
public int Revision { get; set; } = 1; | ||
public string EngineId { get; set; } = default!; | ||
public string SourceLanguage { get; set; } = default!; | ||
public string TargetLanguage { get; set; } = default!; | ||
public BuildState BuildState { get; set; } = BuildState.None; | ||
public bool IsCanceled { get; set; } | ||
public string? BuildId { get; set; } | ||
public int BuildRevision { get; set; } | ||
public string? JobId { get; set; } | ||
public Build? CurrentBuild { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.