File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
gpt_server/model_worker/base Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -49,18 +49,18 @@ def get_context_length_(config):
49
49
async def cleanup_static_files ():
50
50
"""清理静态文件目录并重建"""
51
51
await asyncio .sleep (10 ) # 60分钟 = 3600秒
52
- logger .info (f"{ datetime .now ()} 开始清理静态文件目录:{ STATIC_DIR } " )
52
+ logger .debug (f"{ datetime .now ()} 开始清理静态文件目录:{ STATIC_DIR } " )
53
53
shutil .rmtree (STATIC_DIR , ignore_errors = True )
54
54
os .makedirs (STATIC_DIR , exist_ok = True )
55
- logger .info (f"{ datetime .now ()} 清理完成" )
55
+ logger .debug (f"{ datetime .now ()} 清理完成" )
56
56
await asyncio .sleep (10 ) # 60分钟 = 3600秒
57
57
58
58
59
59
async def run_scheduler ():
60
60
"""每60分钟执行一定时任务"""
61
61
while True :
62
62
await cleanup_static_files ()
63
- await asyncio .sleep (60 * 60 ) # 60分钟 = 3600秒
63
+ await asyncio .sleep (60 * 60 * 12 ) # 60分钟 = 3600秒
64
64
65
65
66
66
class ModelWorkerBase (BaseModelWorker , ABC ):
You can’t perform that action at this time.
0 commit comments