fix: 翻译所有 celerytask verbose

This commit is contained in:
Bai
2023-02-17 19:23:42 +08:00
committed by Jiangjie.Bai
parent 5f2f38d815
commit fb32c976b2
6 changed files with 93 additions and 115 deletions

View File

@@ -49,8 +49,6 @@ def clean_ftp_log_period():
FTPLog.objects.filter(date_start__lt=expired_day).delete()
@shared_task(verbose_name=_('Clean audits log'))
@register_as_period_task(interval=3600 * 24)
def clean_celery_tasks_period():
logger.debug("Start clean celery task history")
expire_days = get_log_keep_day('TASK_LOG_KEEP_DAYS')