mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2025-02-16 13:28:29 +00:00
make actor pending include all obj with retry_at in the past
This commit is contained in:
parent
8f8fbbb7a2
commit
fb82fdae16
1 changed files with 1 additions and 1 deletions
|
@ -315,7 +315,7 @@ class ActorType(Generic[ModelType]):
|
|||
@classproperty
|
||||
def pending_q(cls) -> Q:
|
||||
"""Get the filter for objects that are ready for processing."""
|
||||
return ~(cls.active_q) & ~(cls.final_q) & ~(cls.future_q)
|
||||
return (~(cls.active_q) & ~(cls.final_q)) | Q(retry_at__lte=timezone.now())
|
||||
|
||||
@classmethod
|
||||
def get_queue(cls, sort: bool=True) -> QuerySet[ModelType]:
|
||||
|
|
Loading…
Add table
Reference in a new issue