Tweak incoming activity processing

main
Thomas Sileo 2022-07-16 07:50:15 +02:00
parent 1197f132ce
commit 31bf1f66a4
1 changed files with 6 additions and 1 deletions

View File

@ -16,7 +16,7 @@ from app.database import AsyncSession
from app.database import async_session
from app.utils.datetime import now
_MAX_RETRIES = 5
_MAX_RETRIES = 8
async def new_ap_incoming_activity(
@ -91,6 +91,11 @@ async def process_next_incoming_activity(db_session: AsyncSession) -> bool:
)
).scalar_one()
logger.info(
f"incoming_activity={next_activity.ap_object}/"
f"{next_activity.sent_by_ap_actor_id}"
)
next_activity.tries = next_activity.tries + 1
next_activity.last_try = now()