fix: 补上清单里还没对上的登录拒绝、会话回退和代理清理
This commit is contained in:
@@ -1628,6 +1628,12 @@ class AutoStudyWorker:
|
||||
course_list = snapshot_courses(db.scalars(select(Course)).all())
|
||||
if expired:
|
||||
db.commit()
|
||||
queried = {row.employee_id for row in users}
|
||||
with _halt_lock:
|
||||
stranded = [eid for eid in list(_wanted) if eid not in queried and eid not in _running]
|
||||
for eid in stranded:
|
||||
_set_user_status(eid, state="学习失败", message="登录凭证待校验")
|
||||
drop_work(eid)
|
||||
wait = max(1.0, min(3600.0, (soonest - as_cn()).total_seconds()))
|
||||
label = soonest.strftime("%m-%d %H:%M:%S")
|
||||
return jobs, course_list, wait, f"下一次定时 {label}"
|
||||
|
||||
Reference in New Issue
Block a user