Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions authentik/tasks/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from typing import Self
from uuid import UUID, uuid4

from dramatiq.errors import Retry
import pgtrigger
from django.contrib.contenttypes.fields import ContentType, GenericForeignKey, GenericRelation
from django.db import models
Expand Down Expand Up @@ -107,6 +108,8 @@ def _make_log(
**attributes,
}
message = str(message)
if not message and isinstance(message, Retry):
message = "Task has encountered an error and will be retried"
return LogEvent(
message,
logger=logger,
Expand Down
Loading