fix: 失败账号按间隔重试,请求并发不再占满整段学习
This commit is contained in:
@@ -211,6 +211,10 @@ def _fetch_and_store(trigger: str) -> bool:
|
||||
sync.next_allowed_at = sync.finished_at + next_gap()
|
||||
sync.course_count = len(courses)
|
||||
db.commit()
|
||||
from euniv.autostudy import clear_study_hold, request_wake
|
||||
|
||||
clear_study_hold(employee_id)
|
||||
request_wake()
|
||||
return True
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user