2021-01-17 04:08:21 +00:00
|
|
|
from celery import shared_task
|
2023-07-24 03:52:25 +00:00
|
|
|
from django.utils.translation import gettext_lazy as _
|
2021-01-17 04:08:21 +00:00
|
|
|
|
|
|
|
from common.utils import get_logger
|
|
|
|
|
|
|
|
logger = get_logger(__file__)
|
|
|
|
|
|
|
|
|
2022-11-15 08:29:40 +00:00
|
|
|
@shared_task(verbose_name=_("Refresh organization cache"))
|
2022-09-29 12:44:45 +00:00
|
|
|
def refresh_org_cache_task(*fields):
|
|
|
|
from .caches import OrgResourceStatisticsCache
|
|
|
|
OrgResourceStatisticsCache.refresh(*fields)
|