Skip to content

Commit ccdc31d

Browse files
committed
Reduce fetch intervals for Pretix updates
1 parent af5ea9f commit ccdc31d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/europython_discord/registration/cog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ async def cog_unload(self) -> None:
243243
"We apologize for the inconvenience and are working hard to fix the issue."
244244
)
245245

246-
@tasks.loop(minutes=5)
246+
@tasks.loop(minutes=1)
247247
async def fetch_pretix_updates(self) -> None:
248248
_logger.info("Starting the periodic pretix update...")
249249
try:

src/europython_discord/registration/pretix_connector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ async def fetch_pretix_data(self) -> None:
5858
async with self._fetch_lock:
5959
# ... but does not trigger a second fetch
6060
now = datetime.now(tz=UTC)
61-
if self._last_fetch and now - self._last_fetch < timedelta(minutes=2):
61+
if self._last_fetch and now - self._last_fetch < timedelta(minutes=0.9):
6262
_logger.info(f"Skipping pretix fetch (last fetch was at {self._last_fetch})")
6363
return
6464

0 commit comments

Comments
 (0)