Allow monitoring TG AI retries
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 5s

This commit is contained in:
Grendgi
2026-06-08 15:48:47 +03:00
parent 8259a01a88
commit bc15c2e116

View File

@@ -218,14 +218,13 @@ func (c *classifier) classify(ctx context.Context, msg pendingMessage) (json.Raw
}
job, err := c.ai.CreateJob(ctx, aiservice.CreateJobRequest{
OwnerService: "monitoring-tg",
OwnerRef: fmt.Sprintf("%d", msg.ID),
TaskType: "telegram_classification",
ModelProfile: c.cfg.LLMModel,
Priority: 5,
MaxAttempts: 2,
Input: body,
IdempotencyKey: fmt.Sprintf("monitoring-tg:telegram_classification:%d", msg.ID),
OwnerService: "monitoring-tg",
OwnerRef: fmt.Sprintf("%d", msg.ID),
TaskType: "telegram_classification",
ModelProfile: c.cfg.LLMModel,
Priority: 5,
MaxAttempts: 2,
Input: body,
})
if err != nil {
return nil, err