Improve database concurrency
All checks were successful
Django CI/CD / test (push) Successful in 1m7s
Django CI/CD / build-and-push (push) Successful in 1m58s

This commit is contained in:
2025-01-30 16:53:30 +01:00
parent 6f62889e92
commit 2f4e16dd54
2 changed files with 6 additions and 0 deletions

View File

@ -26,6 +26,7 @@ def schedule_tasks(sender, **kwargs):
name="Update converted prices",
schedule_type=Schedule.MINUTES,
next_run=now() + timedelta(seconds=30),
catchup=False,
)
if not Schedule.objects.filter(name="Update price per game").exists():
@ -34,6 +35,7 @@ def schedule_tasks(sender, **kwargs):
name="Update price per game",
schedule_type=Schedule.MINUTES,
next_run=now() + timedelta(seconds=30),
catchup=False,
)
from games.models import ExchangeRate