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

django_apscheduler 在 uwsgi 多进程环境下无法正常运行 #23

Open
liu3734 opened this issue Feb 24, 2021 · 2 comments
Open

django_apscheduler 在 uwsgi 多进程环境下无法正常运行 #23

liu3734 opened this issue Feb 24, 2021 · 2 comments

Comments

@liu3734
Copy link
Contributor

liu3734 commented Feb 24, 2021

多进程环境下django_apscheduler无法正常运行

https://apscheduler.readthedocs.io/en/latest/faq.html#how-can-i-use-apscheduler-with-uwsgi
image
建议文档说明下,或者在后续版本提供其他的解决方案。

@liu3734 liu3734 changed the title django_apscheduler 在 uwgsi 多进程环境下无法正常运行 django_apscheduler 在 uwsgi 多进程环境下无法正常运行 Feb 24, 2021
@TianPangJi
Copy link
Owner

我添加了一种redis锁的方式解决该问题,但可能不是最佳的解决方案

a01ba7f

@lihuacai168
Copy link

我添加了一种redis锁的方式解决该问题,但可能不是最佳的解决方案

a01ba7f

定时任务换成mq + celery更好?redis的队列有很严重的问题,不能重复消费,不是异步的。

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

No branches or pull requests

3 participants