mirror of https://github.com/jumpserver/jumpserver
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
352 B
13 lines
352 B
from celery import shared_task
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
|
from common.utils import get_logger
|
|
|
|
logger = get_logger(__file__)
|
|
|
|
|
|
@shared_task(verbose_name=_("Refresh organization cache"))
|
|
def refresh_org_cache_task(*fields):
|
|
from .caches import OrgResourceStatisticsCache
|
|
OrgResourceStatisticsCache.refresh(*fields)
|