WIP: Submit transcoding jobs via a HTTP API #6
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user