Merge pull request 'Ensure clean up of uploaded file if job fails.' () from failed-job-cleanup into develop

Reviewed-on: 
This commit is contained in:
Nico Athanassiadis 2025-02-04 06:43:13 +01:00
commit 8430f36f50

@ -95,6 +95,7 @@ public class JobProcessorService {
logger.info("Transcription failed for file: {}", managedJob.getFileName());
managedJob.setJobStatus(JobStatus.FAILED);
fileMetadataRepository.saveAndFlush(managedJob);
cleanupFile(managedJob);
break;
}
} catch (ObjectOptimisticLockingFailureException e) {