mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-28 14:52:58 +00:00
fix: Startup error (#3622)
This commit is contained in:
parent
c035dc5f39
commit
e4c1c39972
|
|
@ -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'))
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in New Issue