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.
18 lines
364 B
18 lines
364 B
|
10 months ago
|
import datetime
|
||
|
|
import json
|
||
|
|
import logging
|
||
|
|
import traceback
|
||
|
|
import uuid
|
||
|
|
|
||
|
|
from django.db import connections, transaction
|
||
|
|
from django_redis import get_redis_connection
|
||
|
|
|
||
|
|
|
||
|
|
logger = logging.getLogger('error')
|
||
|
|
logger_info = logging.getLogger("info")
|
||
|
|
|
||
|
|
|
||
|
|
class TasksFactory(object):
|
||
|
|
|
||
|
|
def crontest(self):
|
||
|
|
logger_info.info('测试定时任务管理cron表达式')
|