feat: finalize operations model workspace
This commit is contained in:
@@ -91,7 +91,10 @@ func (p *Processor) Handle(ctx context.Context, event outbox.Event) error {
|
||||
}
|
||||
sourceTurns := subjectTurns(snapshot.turns)
|
||||
if len(sourceTurns) == 0 {
|
||||
return outbox.Retryable(ErrConversationContentNotReady)
|
||||
// Terminal conversations cannot receive more subject turns. Treat the
|
||||
// extraction request as complete so permanently empty conversations do
|
||||
// not cycle through retry and dead-letter queues forever.
|
||||
return nil
|
||||
}
|
||||
content := joinedConversationContent(snapshot.turns)
|
||||
generated, err := p.generateSafely(ctx, content, snapshot.tenantID)
|
||||
|
||||
Reference in New Issue
Block a user