Open
Conversation
-在 GuildActivityMonitorCombatTime 中新增 run_days 配置项,默认值为 1,2,3,4,5,6,7(周一到周日)。 -任务启动时根据 datetime.now().weekday()+1 判断当天星期,若不在 run_days 中则直接跳过并结束
- 使用正则提取并过滤 1-7 的周几配置,避免异常输入导致误判 - 在运行日期配置无效时记录警告并直接结束任务,避免继续调度 - 当任务在命中当天配置后执行完成时,下一次调度排除当天, 防止再次落回同一天 - 统一按最近有效运行日计算下次执行时间,提升周期调度稳定性
a2f79ae to
0ad172b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.