You've already forked FrameTour-BE
config(task): 限制渲染任务轮询服务仅在生产环境启用
- 修改 Profile 注解配置,将 dev 环境从启用列表中移除 - 确保 RenderJobPollingService 仅在 prod 环境下运行 - 避免开发环境下不必要的任务轮询执行
This commit is contained in:
@@ -41,7 +41,7 @@ import java.util.List;
|
||||
@Service
|
||||
@EnableScheduling
|
||||
@RequiredArgsConstructor
|
||||
@Profile({"dev", "prod"}) // 开发和生产环境启用
|
||||
@Profile({"prod"}) // 开发和生产环境启用
|
||||
public class RenderJobPollingService {
|
||||
|
||||
private final TaskRenderJobMappingMapper mappingMapper;
|
||||
|
||||
Reference in New Issue
Block a user