Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

长时间运行可能导致无法获取最新的课程情况 #47

Open
2 tasks done
uqeryq opened this issue Sep 24, 2020 · 2 comments
Open
2 tasks done

长时间运行可能导致无法获取最新的课程情况 #47

uqeryq opened this issue Sep 24, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@uqeryq
Copy link

uqeryq commented Sep 24, 2020

Check List

Version / Environment

System infomation: Ubuntu 18.04 amd64
Python version: Python 3.6.9
AutoElective version: 4.0.1

Config

dual_degree = false
identity = bzx

[client]

supply_cancel_page = 2
refresh_interval = 2
random_deviation = 0.2
iaaa_client_timeout = 30
elective_client_timeout = 60
elective_client_pool_size = 3
login_loop_interval = 2
debug_print_request = false
debug_dump_request = true

[monitor]

host = 127.0.0.1
port = 7074

[course:ld]

name = 逻辑导论
class = 1
school = 哲学系

[course:xy]

name = 西方音乐欣赏
class = 1
school = 艺术学院

[mutex:mt0]

courses = ld,xy

Issue Description

What

2020年9月24日下午,逻辑导论从250人扩至280人,查看刷课机导出的日志显示依然只有250人;
结束程序后重新运行,观察到导出的日志变为280人。
推测可能与账号长时间未退出登录有关?

程序在阿里云上跑了2天左右;日志均有备份,但过于敏感就不放上来了,如果作者需要可以留个邮箱?

Console Log

Reproduce

@zhongxinghong
Copy link
Owner

日志不需要了,这个问题有几个人都给我反馈过,貌似选课网现在存在恶意缓存,这个问题我可能需要过几天加个补丁修一下

@zhongxinghong zhongxinghong added the enhancement New feature or request label Sep 25, 2020
@zhongxinghong
Copy link
Owner

v5.0.1 里添加了自动重登的机制,默认是每 10 min 让 elective 的会话自动登出,然后重新登录。至于这样能不能改善这个问题,还需要进一步的测试 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants