Skip to content

Commit

Permalink
fix(products): fix update count CRON setup. ref #492
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Oct 3, 2024
1 parent 0168a0f commit 7e0588b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion open_prices/common/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
from open_prices.common.utils import export_model_to_jsonl_gz
from open_prices.locations.models import Location
from open_prices.prices.models import Price
from open_prices.products.models import Product
from open_prices.proofs.models import Proof
from open_prices.stats.models import TotalStats
from open_prices.users.models import Product, User
from open_prices.users.models import User


def import_off_db_task():
Expand Down Expand Up @@ -106,6 +107,7 @@ def dump_db_task():
"update_total_stats_task": "0 1 * * *", # daily at 01:00
"update_user_counts_task": "0 2 * * 1", # every start of the week
"update_location_counts_task": "10 2 * * 1", # every start of the week
"update_product_counts_task": "20 2 * * 1", # every start of the week
"dump_db_task": "0 23 * * *", # daily at 23:00
}

Expand Down

0 comments on commit 7e0588b

Please sign in to comment.