Files
hossein-por-shop/backend/product/tasks.py
T
Parsa Nazer d6df8d9b8c remove cron.py file
cerley beat worker redis
setting for cerley
2025-03-10 16:40:12 +03:30

9 lines
269 B
Python

from celery import shared_task
from product.models import ProductVariant
@shared_task
def update_product_prices():
print("\033[92m Calling update product prices from Celery\033[00m")
ProductVariant.update_all_prices()
print("\033[92m its working\033[00m")