Refactor FfmpegService to improve progress tracking and streamline command building

This commit is contained in:
2025-07-09 18:25:51 +02:00
parent fa89c66260
commit c512f055ee
5 changed files with 79 additions and 52 deletions

View File

@@ -67,7 +67,6 @@ public class JobService {
*/
public void jobReady(String uuid) {
Job job = getJob(uuid);
job.setProgress(0f);
SecurityContext context = SecurityContextHolder.getContext();
job.setSecurityContext(context);
@@ -113,6 +112,7 @@ public class JobService {
Job job = jobQueue.take(); // Blocks until a job is available
logger.info("Starting job {}", job.getUuid());
job.setStatus(JobStatus.RUNNING);
processJob(job);
} catch (InterruptedException e) {
Thread.currentThread().interrupt();