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

交流研讨: [ 定时任务设定与执行时间差异较大 ] #516

Open
jobinli opened this issue Aug 17, 2021 · 2 comments
Open

交流研讨: [ 定时任务设定与执行时间差异较大 ] #516

jobinli opened this issue Aug 17, 2021 · 2 comments
Labels
Duplicate 🐾 重复 Issues and Pull Requests which are duplicates of existing ones Helpless 🥀 无法完成 Issues can not be solved by the maintainer (Issues will be closed within one month) Reinforcement ✨ 强化 Issues for higher quality of being compatible

Comments

@jobinli
Copy link

jobinli commented Aug 17, 2021

机型为红米K40,autojs给后台活动权限了。autojs版本为pro 8.8.20,脚本本版本是最新的v2.1.8

设定定时任务为早上7点20分,然后日志显示7点25分才触发执行,前面并无其他日志。

偶发性,并不是每天都这样,有时候会在更晚的时间触发(有试过7点29分这样子)

这可能会是什么原因导致?应当如何协助排查?

3f58830d3735f5f50c3fa70dbf2ba1e

@jobinli jobinli added the Conversation 💬 会话 Conversation is one of pleasures of life label Aug 17, 2021
@jobinli
Copy link
Author

jobinli commented Aug 17, 2021

认真看了下日志,发现是7点21分开始运行脚本的,然后到7点25分才继续执行。
但是定时任务管理里面,已经开启了提前2分钟运行的设置,这个执行时间还是有差异。

@SuperMonster003
Copy link
Owner

定时任务没有准时运行
一般是关屏后 Auto.js 后台活动受节电设置等限制造成的
相关的 issue 有很多 但目前也没有通用解决方案
通常需要针对自己使用的系统 检查所有与 Auto.js 后台限制或背景运行等相关设置

@SuperMonster003 SuperMonster003 added Duplicate 🐾 重复 Issues and Pull Requests which are duplicates of existing ones Helpless 🥀 无法完成 Issues can not be solved by the maintainer (Issues will be closed within one month) Reinforcement ✨ 强化 Issues for higher quality of being compatible and removed Conversation 💬 会话 Conversation is one of pleasures of life labels Aug 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate 🐾 重复 Issues and Pull Requests which are duplicates of existing ones Helpless 🥀 无法完成 Issues can not be solved by the maintainer (Issues will be closed within one month) Reinforcement ✨ 强化 Issues for higher quality of being compatible
Projects
None yet
Development

No branches or pull requests

2 participants