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.
需要在setting里配置redis地址, 其它的broker 比如 mongo 也可以, 详见文档
https://django-q.readthedocs.io/en/latest/configure.html
经测试计划任务会有大概20秒的延迟.
用户体验上, 建议在选时间时, 给出几个特定时间点的按钮, 比如 2 分钟后, 3 分钟后, 10 分钟后, 下一个整点, 最后加一个选自定义时间的按钮, 这样基本可以用点击按钮覆盖所有需求
选时间时,应该只精确到分, 因为毕竟有延时, 如果精确到秒却没有执行显得是我们系统不靠谱.