jumpserver/apps/orgs/tasks.py

12 lines
250 B
Python
Raw Normal View History

from celery import shared_task
from common.utils import get_logger
logger = get_logger(__file__)
@shared_task
2022-09-29 12:44:45 +00:00
def refresh_org_cache_task(*fields):
from .caches import OrgResourceStatisticsCache
OrgResourceStatisticsCache.refresh(*fields)