From 63e307d251d60e39bf86d31f9da8e38336b7828b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Mon, 11 Nov 2024 00:47:48 +0100 Subject: [PATCH] Run convert price task every minute --- games/apps.py | 2 +- games/management/commands/schedule_update_task.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/games/apps.py b/games/apps.py index 07fcf2f..9443bc5 100644 --- a/games/apps.py +++ b/games/apps.py @@ -22,7 +22,7 @@ def schedule_tasks(sender, **kwargs): schedule( "games.convert_price.update_converted_prices", name="Update converted prices", - schedule_type=Schedule.HOURLY, + schedule_type=Schedule.MINUTES, next_run=now() + timedelta(seconds=30), ) diff --git a/games/management/commands/schedule_update_task.py b/games/management/commands/schedule_update_task.py index 6d40e78..50d970c 100644 --- a/games/management/commands/schedule_update_task.py +++ b/games/management/commands/schedule_update_task.py @@ -14,7 +14,7 @@ class Command(BaseCommand): schedule( "games.convert_price.update_converted_prices", name="Update converted prices", - schedule_type=Schedule.HOURLY, + schedule_type=Schedule.MINUTES, next_run=now() + timedelta(seconds=30), ) self.stdout.write(