This commit is contained in:
javad committed 2026-09-16 14:16:05 +03:30
1 parent 6b841dc5fa
commit 0ed677e5fc
10 files changed
+282 -16

No files matched your search

+5
View File
@@ -63,5 +63,10 @@ class NotificationJob(models.Model):
delivery_checked_at=models.DateTimeField(null=True,blank=True)
delivery_check_attempts=models.PositiveSmallIntegerField(default=0)
delivery_next_check_at=models.DateTimeField(null=True,blank=True,db_index=True)
delivery_is_final=models.BooleanField(default=False)
delivery_retry_source=models.OneToOneField(
"self",on_delete=models.CASCADE,null=True,blank=True,
related_name="delivery_retry_job",
)
class Meta:
indexes=[models.Index(fields=["status","next_attempt_at"],name="notif_due_idx"),models.Index(fields=["ticket","channel","status"],name="notif_ticket_chan_idx")]