WIP: Submit transcoding jobs via a HTTP API #6

Draft
ansv7779 wants to merge 22 commits from api-submission into master
Showing only changes of commit 413f2d1f55 - Show all commits

View File

@ -173,8 +173,8 @@ public class ApiController {
try {
JobCompletion jobCompletion = switch (jobCallbackResponse) {
case JobCallbackResponse.Failure failure -> new JobCompletion.Failure(failure.errorMessage());
case JobCallbackResponse.Success success -> new JobCompletion.Success(Paths.get(success.resultFileAbsolutePath()));
case JobCallbackResponse.Failure(String errorMessage) -> new JobCompletion.Failure(errorMessage);
case JobCallbackResponse.Success(String resultFile) -> new JobCompletion.Success(Paths.get(resultFile));
};
transcriptionService.markJobAsCompleted(UUID.fromString(jobId), jobCompletion);
} catch (JobAlreadyCompleted | JobNotFound ignored) {