* ADD conversion queue * ADD RemuxService for MP4 conversion * REMOVE unused conversion queue * REORGANISE Job-related classes * ADD Job stages * REVERT to old commit, using Spring Async instead * ADD asynchronous processing for video tasks * PATCH and streamline progress tracking * ADD asynchronous video processing and job restructuring * REFACTOR job service method * ADD job remux functionality * ADD remuxing endpoint * PATCH complete flag not updating in API response * ADD progress type in frontend * ADD reset functionality for job status * PATCH missing progress bar for subsequent exports * REDESIGN settings box * ADD tracking video file conversion in frontend * PATCH extension bug * REMOVE autowired decorator
23 lines
693 B
Java
23 lines
693 B
Java
package com.ddf.vodsystem.configuration;
|
|
|
|
import org.springframework.context.annotation.Bean;
|
|
import org.springframework.context.annotation.Configuration;
|
|
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
|
|
|
|
import java.util.concurrent.Executor;
|
|
|
|
@Configuration
|
|
public class AsyncConfig {
|
|
|
|
@Bean(name = "ffmpegTaskExecutor")
|
|
public Executor taskExecutor() {
|
|
ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
|
|
executor.setCorePoolSize(4);
|
|
executor.setMaxPoolSize(8);
|
|
executor.setQueueCapacity(100);
|
|
executor.setThreadNamePrefix("ffmpegExecutor-");
|
|
executor.initialize();
|
|
return executor;
|
|
}
|
|
}
|