Skip to content

Commit cc1c2df

Browse files
Copilotphrocker
andauthored
Fix agent-proxy startup failure - align RLHFFeedbackService bean conditions with dependencies (#167)
* Initial plan * Add @ConditionalOnWebApplication to RLHFFeedbackService to fix agent-proxy deployment Co-authored-by: phrocker <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: phrocker <[email protected]>
1 parent a7a5626 commit cc1c2df

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dataplane/src/main/java/io/sentrius/sso/core/services/feedback/RLHFFeedbackService.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import io.sentrius.sso.core.model.agents.AgentMemory;
99
import lombok.extern.slf4j.Slf4j;
1010
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
11+
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
1112
import org.springframework.scheduling.annotation.Scheduled;
1213
import org.springframework.stereotype.Service;
1314
import org.springframework.transaction.annotation.Transactional;
@@ -23,6 +24,7 @@
2324
@Service
2425
@Slf4j
2526
@ConditionalOnProperty(name = "sentrius.rlhf.enabled", havingValue = "true", matchIfMissing = true)
27+
@ConditionalOnWebApplication(type = ConditionalOnWebApplication.Type.SERVLET)
2628
public class RLHFFeedbackService {
2729

2830
private final AgentFeedbackRepository feedbackRepository;

0 commit comments

Comments
 (0)