config(task): 限制渲染任务轮询服务仅在生产环境启用

- 修改 Profile 注解配置,将 dev 环境从启用列表中移除
- 确保 RenderJobPollingService 仅在 prod 环境下运行
- 避免开发环境下不必要的任务轮询执行
This commit is contained in:
2026-02-11 16:38:42 +08:00
parent 122d430dbb
commit f80b15446a

View File

@@ -41,7 +41,7 @@ import java.util.List;
@Service @Service
@EnableScheduling @EnableScheduling
@RequiredArgsConstructor @RequiredArgsConstructor
@Profile({"dev", "prod"}) // 开发和生产环境启用 @Profile({"prod"}) // 开发和生产环境启用
public class RenderJobPollingService { public class RenderJobPollingService {
private final TaskRenderJobMappingMapper mappingMapper; private final TaskRenderJobMappingMapper mappingMapper;