Run convert price task every minute
This commit is contained in:
parent
b0eb28618c
commit
63e307d251
|
@ -22,7 +22,7 @@ def schedule_tasks(sender, **kwargs):
|
||||||
schedule(
|
schedule(
|
||||||
"games.convert_price.update_converted_prices",
|
"games.convert_price.update_converted_prices",
|
||||||
name="Update converted prices",
|
name="Update converted prices",
|
||||||
schedule_type=Schedule.HOURLY,
|
schedule_type=Schedule.MINUTES,
|
||||||
next_run=now() + timedelta(seconds=30),
|
next_run=now() + timedelta(seconds=30),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ class Command(BaseCommand):
|
||||||
schedule(
|
schedule(
|
||||||
"games.convert_price.update_converted_prices",
|
"games.convert_price.update_converted_prices",
|
||||||
name="Update converted prices",
|
name="Update converted prices",
|
||||||
schedule_type=Schedule.HOURLY,
|
schedule_type=Schedule.MINUTES,
|
||||||
next_run=now() + timedelta(seconds=30),
|
next_run=now() + timedelta(seconds=30),
|
||||||
)
|
)
|
||||||
self.stdout.write(
|
self.stdout.write(
|
||||||
|
|
Loading…
Reference in New Issue