Skip to content
This repository has been archived by the owner on Aug 23, 2020. It is now read-only.

定时任务有时候会卡住 #324

Open
mengxingxinqing opened this issue May 18, 2018 · 4 comments
Open

定时任务有时候会卡住 #324

mengxingxinqing opened this issue May 18, 2018 · 4 comments

Comments

@mengxingxinqing
Copy link

我自定义了一个每分钟执行的任务,我自己看控制台时,任务能够正常执行,一旦我把控制台最小化到后台,就不执行了,一旦我把他切到前台,在按一个上箭头,堆积的定时任务会一下全部执行,导致我的qq被封了

@pandolia
Copy link
Owner

还没碰到这个问题。发一下你的代码看看吧。

@mengxingxinqing
Copy link
Author

@qqbotsched(minute='*/1') def mytask(bot): INFO('test.......................................................')

@mengxingxinqing
Copy link
Author

我发现在本地随便写一个脚本 time.sleep(300) 然后就会出现卡死的情况,不手动激活,程序就不动了

@liang55
Copy link

liang55 commented Nov 29, 2018

在配置文件里面设置daemon 后台运行试试

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants