-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
归档时在Scheduled tasks设置后还是30s执行一次 #699
Comments
相关问题已经在Koed00/django-q#353 修复,并发布于django_q == 1.0.2 |
django_q的版本是1.2.1,而且演示环境好像也有同样的问题。 archive-7 sql.archiver.archive 2020-04-13 09:48:48 2020-04-13 09:48:48 0.16764 archive-2020-04-13 09:48:48 |
django_q 1.2.1 这段bugfix代码被覆盖掉了,需要重新再加上 |
确实,可先回滚到1.1.0 |
你已经很久没有回复这个issue了,如果没有进一步的信息的话, 会作为不活跃issue关闭, 感谢你对本项目的贡献。 |
归档时在Scheduled tasks设置后还是30s执行一次,必须调整archery/settings.py中USE_TZ = True才能进行正常的定时执行,但是配置USE_TZ = True后会导致datetime.now()的时间-8小时,出现各种问题,包括上线中的定时执行校验失败,日志中时间差异等等。
有什么好的办法避免使用USE_TZ = True吗?否则改动太大
重现步骤
USE_TZ = False时,配置1分钟一次,但实际30s执行一次
期待结果和实际结果
期待结果:
可以正常配置归档时间
实际结果:
截图
错误日志
USE_TZ = True时上线定时执行报错
版本信息
应用版本/分支:
1.7.8
部署方式:手工部署
The text was updated successfully, but these errors were encountered: