From 79e1f0da14663aa1e9a85ccb4cb38943f94a7987 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Mon, 15 May 2023 16:59:34 -0600 Subject: [PATCH] Don't even try to progress post attachments --- activities/models/post_attachment.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/activities/models/post_attachment.py b/activities/models/post_attachment.py index d7c5474..4e1c9c3 100644 --- a/activities/models/post_attachment.py +++ b/activities/models/post_attachment.py @@ -8,16 +8,11 @@ from stator.models import State, StateField, StateGraph, StatorModel class PostAttachmentStates(StateGraph): - new = State(try_interval=30000) + new = State(externally_progressed=True) fetched = State() new.transitions_to(fetched) - @classmethod - async def handle_new(cls, instance): - # TODO: Fetch images to our own media storage - pass - class PostAttachment(StatorModel): """