Allow monitoring TG AI retries
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 5s
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 5s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user