fix: Startup error (#3622)

This commit is contained in:
shaohuzhang1 2025-07-16 10:15:45 +08:00 committed by GitHub
parent c035dc5f39
commit e4c1c39972
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 5 deletions

View File

@ -22,7 +22,7 @@ def clean_chat_log_job():
clean_chat_log_job_lock()
@lock(lock_key='clean_chat_log_job', timeout=30)
@lock(lock_key='clean_chat_log_job_execute', timeout=30)
def clean_chat_log_job_lock():
from django.utils.translation import gettext_lazy as _
maxkb_logger.info(_('start clean chat log'))

View File

@ -19,7 +19,7 @@ def clean_debug_file():
clean_debug_file_lock()
@lock(lock_key='clean_debug_file', timeout=30)
@lock(lock_key='clean_debug_file_execute', timeout=30)
def clean_debug_file_lock():
from django.utils.translation import gettext_lazy as _
maxkb_logger.info(_('start clean debug file'))
@ -35,7 +35,7 @@ def clean_debug_file_lock():
def run():
if try_lock('clean_debug_file', 30):
if try_lock('clean_debug_file', 30 * 30):
try:
scheduler.start()
clean_debug_file_job = scheduler.get_job(job_id='clean_debug_file')

View File

@ -24,7 +24,7 @@ def client_access_num_reset_job():
client_access_num_reset_job_lock()
@lock(lock_key="access_num_reset", timeout=30)
@lock(lock_key="access_num_reset_execute", timeout=30)
def client_access_num_reset_job_lock():
from django.utils.translation import gettext_lazy as _
maxkb_logger.info(_('start reset access_num'))
@ -33,7 +33,7 @@ def client_access_num_reset_job_lock():
def run():
if try_lock('access_num_reset', 30):
if try_lock('access_num_reset', 30 * 30):
try:
scheduler.start()
access_num_reset = scheduler.get_job(job_id='access_num_reset')