fix: even less more slow for persistence task (#31657)

This commit is contained in:
Paul D'Ambra
2025-04-28 17:40:51 +02:00
committed by GitHub
parent 0249e24035
commit f372ef9c4e

View File

@@ -28,12 +28,12 @@ REPLAY_NEEDS_PERSISTENCE_V2_COUNTER = Counter(
)
@shared_task(ignore_result=True, queue=CeleryQueue.SESSION_REPLAY_PERSISTENCE.value, rate_limit="15/m")
@shared_task(ignore_result=True, queue=CeleryQueue.SESSION_REPLAY_PERSISTENCE.value, rate_limit="30/m")
def persist_single_recording(id: str, team_id: int) -> None:
persist_recording(id, team_id)
@shared_task(ignore_result=True, queue=CeleryQueue.SESSION_REPLAY_PERSISTENCE.value, rate_limit="15/m")
@shared_task(ignore_result=True, queue=CeleryQueue.SESSION_REPLAY_PERSISTENCE.value, rate_limit="30/m")
def persist_single_recording_v2(id: str, team_id: int) -> None:
persist_recording_v2(id, team_id)