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.
jumpserver/apps/terminal/tasks.py

27 lines
339 B

# -*- coding: utf-8 -*-
#
import time
from celery import shared_task
from django.core.cache import cache
from django.db.utils import ProgrammingError, OperationalError
from .models import Session
CACHE_REFRESH_INTERVAL = 10
RUNNING = False
# Todo: 定期清理上报history
@shared_task
def clean_terminal_history():
pass