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.
12 lines
274 B
12 lines
274 B
4 years ago
|
from celery import shared_task
|
||
|
|
||
|
from common.utils import get_logger
|
||
|
|
||
|
logger = get_logger(__file__)
|
||
|
|
||
|
|
||
|
@shared_task
|
||
|
def refresh_org_cache_task(cache, *fields):
|
||
|
logger.info(f'CACHE: refresh <org: {cache.get_current_org()}> {cache.key}.{fields}')
|
||
|
cache.refresh(*fields)
|