perf: 完善僵尸会话清理

pull/11900/head
Eric 2023-10-18 19:13:35 +08:00
parent fef26c38fe
commit 25a1989157
1 changed files with 1 additions and 0 deletions

View File

@ -43,6 +43,7 @@ def delete_terminal_status_period():
@register_as_period_task(interval=600)
@after_app_ready_start
@after_app_shutdown_clean_periodic
@tmp_to_root_org()
def clean_orphan_session():
active_sessions = Session.objects.filter(is_finished=False)
for session in active_sessions: