-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
06b1173
commit 01ec825
Showing
15 changed files
with
81 additions
and
117 deletions.
There are no files selected for viewing
11 changes: 0 additions & 11 deletions
11
src/Serval/src/Serval.Assessment/Consumers/DataFileDeletedConsumer.cs
This file was deleted.
Oops, something went wrong.
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
11 changes: 1 addition & 10 deletions
11
src/Serval/src/Serval.Assessment/Services/IEngineService.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,13 @@ | ||
namespace Serval.Assessment.Services; | ||
|
||
public interface IEngineService | ||
public interface IAssessmentEngineService : IEngineService<AssessmentEngine, AssessmentJob> | ||
{ | ||
Task<IEnumerable<Engine>> GetAllAsync(string owner, CancellationToken cancellationToken = default); | ||
Task<Engine> GetAsync(string id, CancellationToken cancellationToken = default); | ||
|
||
Task<Engine> CreateAsync(Engine engine, CancellationToken cancellationToken = default); | ||
Task DeleteAsync(string id, CancellationToken cancellationToken = default); | ||
|
||
Task<Corpus> ReplaceCorpusAsync(string id, Corpus corpus, CancellationToken cancellationToken = default); | ||
Task<Corpus> ReplaceReferenceCorpusAsync( | ||
string id, | ||
Corpus referenceCorpus, | ||
CancellationToken cancellationToken = default | ||
); | ||
|
||
Task StartJobAsync(Job job, CancellationToken cancellationToken = default); | ||
Task<bool> CancelJobAsync(string id, string jobId, CancellationToken cancellationToken = default); | ||
|
||
Task DeleteAllCorpusFilesAsync(string dataFileId, CancellationToken cancellationToken = default); | ||
} |
This file was deleted.
Oops, something went wrong.
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
11 changes: 11 additions & 0 deletions
11
src/Serval/src/Serval.Shared/Consumers/DataFileDeletedConsumer.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace Serval.Shared.Consumers; | ||
|
||
public class DataFileDeletedConsumer<TJob>(ITrainingEngineService<TJob> engineService) : IConsumer<DataFileDeleted> | ||
{ | ||
private readonly ITrainingEngineService<TJob> _engineService = engineService; | ||
|
||
public async Task Consume(ConsumeContext<DataFileDeleted> context) | ||
{ | ||
await _engineService.DeleteAllCorpusFilesAsync(context.Message.DataFileId, context.CancellationToken); | ||
} | ||
} |
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
11 changes: 0 additions & 11 deletions
11
src/Serval/src/Serval.Translation/Consumers/DataFileDeletedConsumer.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.