d6df8d9b8c
cerley beat worker redis setting for cerley
9 lines
269 B
Python
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")
|