mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-14 10:44:27 +00:00
Tweak incoming activity processing
This commit is contained in:
parent
1197f132ce
commit
31bf1f66a4
1 changed files with 6 additions and 1 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue